SharePoint: Workflow to retrieve all users and Create list item record for each user

Hi all,
My share point site have two Lists as Holidays and MyCalender.
Actually Holiday is simple non-Calender list with field as Holiday Date, Reason. MyCalender List Calender type list with Person Look-up column and user can see his own record. User of Manager group will declare holiday. This Holiday should get reflected
on each user 's MyCalender List.[One listitem as holiday date and reason for each user] so everyone can view that record.
I have requirement as Manager will create one Holiday record and then run single workflow so for all users present in SharePoint Site, one MyCalender List Item record should get created. Is it possible to do using Workflow?? Please help as I didn't get any
solution for this.. Thanks in advance!

You don't need one workflow per user when a filtered view can do this for you.  If the manager's list is the parent calendar, I'm assuming that he'll be at least using the person look-up column.
Whether this feeds through the MyCalendar or stays where it is, you can use the [Me] parameter within the filter on a new view.  This will then return the assigned holiday filtering against the account that is logged in.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem.

Similar Messages

  • Create List Item using REST API

    Hi All
      I try create list item using REST in SharePoint 2013.  when code is try add new item in list , getting error :
    A node of type 'EndOfInput' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was expected.
    Please help me
    function addData() {
    var title = $('#txtTitile').val();
    //alert(title);
    var items = {
    __metadata: { "Type": "SP.Data.OrderDetailsListItem"},
    Title:title
    var exec = new SP.RequestExecutor(appweburl);
    exec.executeAsync(
    url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('OrderDetails')/Items?@target='" + hostweburl + "'",
    method: "POST",
    data: JSON.stringify(items),
    headers: {
    Accept: "application/json;odata=verbose",
    "Content-Type": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: function (data) { alert(JSON.parse(data)); },
    error: function (error)
    { alert(JSON.stringify(error)); }
    with Regards Sivam

    Hi,                                                             
    Here is a demo which works in my environment for your reference:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $("#Button1").click(function(){
    createListItemWithDetails("list2", "http://sp2013sps", "item1");
    // Getting the item type for the list
    function GetItemTypeForListName(name) {
    //alert("GetItemTypeForListName: "+name);
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    // CREATE Operation
    // listName: The name of the list you want to get items from
    // siteurl: The url of the site that the list is in. // title: The value of the title field for the new item
    // success: The function to execute if the call is sucesfull
    // failure: The function to execute if the call fails
    function createListItemWithDetails(listName, siteUrl, title) {
    var itemType = GetItemTypeForListName(listName);
    //alert("itemType :"+itemType);
    var item = {
    "__metadata": { "type": itemType },
    "Title": title
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items",
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: function (data) {
    location.href=location.href;
    //success(data);
    error: function (data) {
    alert("error");
    //failure(data);
    </script>
    <input id="Button1" type="button" value="Run Code"/>
    Best regards
    Patrick Liang
    TechNet Community Support

  • Retrieve all user id's from LDAP directory and populate in Oracle table.

    Guys,
    We've implemented LDAP authentication functionality in our application using Oracle's dbms_ldap package objects.
    Now,Is there any way that I can retrieve all user ids from the LDAP directory and store in an Oracle table?
    The distinguished name of authorized user as it appears in our LDAP directory is below:
    dn=uid=ab0472,ou=people,ou=xyz,o=world.
    Now I need to fetch all users uid's from the LDAP directory and populate in an Oracle table.Can somone help me with thoughts.
    Thanks,
    Bhagat

    Have a look at attachments API, since this also does the same thing except that it puts the file in fnd_lobs instead of the custom table.
    Thanks
    Tapash

  • Where do I put a workflow so that all users on the Mac can access?

    Where do I put a workflow so that all users on the Mac can access it from Automator?
    Also. why does the search pattern "users" AND "workflows" return results whitch math "and" (lowercase)? I thought "AND" (in caps) is for boolean searches.

    Hi, Mike.
    1. You wrote: "Where do I put a workflow so that all users on the Mac can access it from Automator?"Either:
    • Macintosh HD > Users > Shared
    • Macintosh HD > Applications (if you're the Admin user).
    All users (unless restricted by Parental Controls) have access to those folders.
    2. You wrote: "Also. why does the search pattern "users" AND "workflows" return results whitch math "and" (lowercase)? I thought "AND" (in caps) is for boolean searches."It's unclear as to what search facility you are referring, and a bit hard to follow given the spelling errors in your question.
    Do you mean Discussions search? If so, have you reviewed the Search Tips? They're also available from the search page, where one can click "Tips" under the Search Terms field.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Retrieve all users with attributes from AD

    hi,
    i'd like to retrieve all users with their attributes from AD. I can connect to AD and i 'm able to retrieve entries from a group with the member class given in this forum.
    But my problem is i would like to retrieve users directly from the Users container
    thanx for help

    i solved one part of my problem.
    But, now i have to get all attributes for each users and i couldn't find them. The getattributes method doesn't return anything (i 'd like to retrieve the first name, last name, adress ...)
    thanx for help

  • Estimate time to enable all constraints and create all indexes

    Hi,
    To prepare a project to export/import for a whole database,
    How can I estimate time required to enable all constraints and create all indexes
    * Assume one full table scan per one FK constraint
    * Assume one full table scan plus one sort/merge operation per one index
    * Check it out whether we can use parallel DDL feature to speed up enabling of FK constraints
    how can I use core schema (which will be exp/imp) in the production db to get needed metric for the calcualtion?
    thanks
    Jerry

    There is no definative way to find the time it takes to enable a constraint / create a Index
    It toatally depends on the Size of the table / execution plan / resources available (In terms of CPU and Physical Memory ) /
    Amount of Temporary tablespace

  • Requestors end users will not acces a site directly and add list items

    Hi
    i created a  site for IT services  and this site includes some lists for various services
    http://Intranet.com/Units/IT services 
    main site is http://Intranet.com
    and also workflow are configured  for these lists for create new item
    and only 3 type of users will work on these lists
    1)Requestors (Create,View rights)
    2)Contributers (Contribute permissions)
    3)Approvers
    Scenario:
    -- Requestors    will create list items and approvers will Open this list item and  edit list item like
     approve and add a Contribute userid in AssignedTO field
    ---Contribute user also will recieve email and he also Open item and edit ans save this list
    so basically its backend  , data inserted by requestors will  save in lists
    so here i need all  Requestors  end users will not acces IT services site and add list item directly in list.
    is any other option availabe that i will provide a  diffrent front end page for Requestors at root level  site (which is Intranet.com )
    and they will add and view only their data, and  Contributers  also  view and edit all users data.
    adil

    Hi adilahmed,
    You can use two web parts to show the list items for different group.
    In the List view page, add another list view web part, set the first web part list view to filter Created By field with Me, second list with all list items.
    Then set the first web part with audience Requested group, and second web part with audience Contributers group.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How does sharepoint designer create list item work ?.

    I'am using office 365, and sharepoint-designer (not the pro designer).
    There is a workflow rule that allows for creating items in another list.
    What i need to do is that if someone creates an entry in List A
    That List B gets an update too, based upon List A, and also a 4th list entry of list C (ea string containing "life cycle start").
    The workflow with the "rule create item in list", i've set to "start automatically when a new item is created".
    So far i've not been able to make it work, and the workflow Always suspends with vague errors, and since it is hosted i cannt do much with the errors.
    Could therefore anyone point me to a good youtube explaining this  function.
    Or might possible point out what often goes wrong when people use this.
    Maybe give some examples

    Yeeha !!!
    I got the first part working now; recap of howto:
    First of all, before you create lists and columns write it down on paper, so you will be sure about what names you will give them, as renaming these kinds of things later,  will only rename their view but not their old internal name, and as a result you
    will get lost if you want to automate stuff later on.
    So have you design ready (or in my case; delete current wrong site and start over clean).
    Recap :
    Using SharePoint designer:
    Create List A, use titles as the field to enter product names (or whatever item you like to registrate).
    Use the web browser:
    Goto List A you just made and set the title column to contain (required) unique index names.
    You can do this as Admin through list setting in the list top ribbon.
    Create List B using Sharepoint designer (simple list)
    In List B create a Lookup list to List A
    And select it so that you would like to see the title column in it.
    Using the web brouwser, make this column a required field (will become a (*) mark later).
    Using SharePoint designer, select list A.
    Select properties of List A, create a new (basic) workflow for it.
    Here you would assume that you need to get the title in List B, but that's wrong
    What one needs to get in List B a new to the current added Item in List A is the following:
    Note that the workflow will run under the context of new Items who are added to List A
    Create an action rule "Create list item" in the following list, and here select List B
    The pop will show you some fields marked with a (*) as required fields.
    Now the tricky thing is that is a reference to List A, and not a string.
    So you might think its a GUID then or so, but no wrong again.
    To get the link to the current List item A inside B.
    You will have to link it to  "Current Item"   (remember the workflow started from list A )
    And from the Current Item, you have to select the "ID" property.
    Apparently ID is internally used as a reference.
    Now whenever you create an Item in list A, it will be created in List B as well as a linked reference.
    So for example in A you could add more columns, like serial ID or creation time of article A.
    Then you don't have to add these into List B, as when people click on the hyperlink in List B they will be shown the details from list A.

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • My family has multiple iOS devices, all with 1 Apple ID. With iCloud coming, should I create separate Apple IDs for each member of my family?

    Hello,
    Between my family, we have 2 iPhones, multiple computers, iPads, and an Apple TV ALL tied in to the same Apple ID (the one I created when I got my first device). With iCloud coming, I wanted to know if I need to create separate Apple IDs for each family member (for emails, contacts, calendars, etc.). For instance, I would like to share certain contacts and a calendar with only my wife, all media between all family members, and have home sharing so that I can play/stream content on my Apple TV. Will there be a way to have multiple and distinct me.com accounts and yet share the same Apple ID?
    Apologies for being verbose — just wanted to give ample info/background.
    Thanks,
    Jay.

    I happened to stop at the Apple store yesterday for a separate issue and had a discussion about iCloud. Seems like this is how iCloud works (also, there's another thread on this forum that explains it well).
    Each member of the family can have their own iCloud ID, which will be used for Mail, Calendar, Contacts, Apps, Bookmarks, Media, Photos, etc. and having this content synced automatically with a Mac (computer). The iCloud IDs work in tandem with the associated Apple ID — so while you cannot have multiple Apple IDs, you can certainly have multiple iCloud IDs tagged with a certain Apple ID.
    While all this makes sense from the iOS device standpoint, I'm unclear on how things will sync with a Mac computer, especially if the family uses a single iMac with multiple login IDs for various members. For instance, I currently have an iMac and iTunes content resides in my Public folder, which my wife can still access when she logs in with her login ID. I'm guessing that I'll be able to set up her iCloud ID using her login, set up my iCloud ID using my login, while both our iMac logins will retain the same Apple ID. This would take care of syncing Photos, Contacts, Calendars, etc.
    Another (not sure if unique) problem I face is our Address Book — right now, we have one GIANT address book with different groups set up. Certain groups sync to her iPhone, while others to mine. Some contacts are common between both of us. I'm hoping that if she/I updates a common contact, then the change will be reflected in both our groups of contacts. I hope this makes sense — for instance, I update a contact named Joe, and he's on my group of contacts in my iPhone. Hope iCloud updates the master contact card for Joe on the iMac, which would then automatically trigger the update on my wife's group of contacts—that Joe also belongs to— leading to an update on her iOS device as well.
    Apologies for the lengthy response..

  • How can I sum up raws? the sum function seems to work for columns only and right now I have to create a separate formula for each raw

    How can I sum up raws? the Sum function seems to work only on columns. Right now I have to create a separate formula for each raw

    Hi dah,
    "Thanks, but can I do one formula for all present and future raws? as raws are being added, I have to do the sum function again and again"
    You do need a separate formula for each group of values to be summed.
    If the values are in columns, you need a copy of the formula for each column.
    If the values are in rows, you need a copy of the formula for for each row.
    If you set up your formulas as SGIII did in his example (shown below), where every non-header row has the same formula, Numbers will automtically add the formula to new rows as you add them.
    "Same formula" in this context means exactly the same as all the formulas above, with one exception: the row reference in each formula is incremented (by Numbers) to match the row containing the formula.
    Here the formula looks like this in the three rows shown.
    B2: =SUM(2)
    B3: =SUM(3)
    B4: =SUM(4)
    That pattern will continue as rows are added to the table.
    Also, because the row token (2) references all of the non-header cells in row 2, the formula will automatically include new columns as they are added to the table.
    Regards,
    Barry

  • IPad Air iOS8.0.2. I used the photos app to edit my photos and created a new album for them. When I transfer my photos to my PC via cable (not allowed to use cloud services by my boss) i can only transfer the unedited versions. Any tips? Thanks!

    iPad Air iOS8.0.2. I used the photos app to edit my photos and created a new album for them. When I transfer my photos to my PC via cable (not allowed to use cloud services by my boss) I cannot choose this edited album, only transfer the unedited versions. Any tips? Thanks!

    Hi Anjohi,
    Thanks for visiting Apple Support Communities.
    If you've edited photos on your iPad and only see the original version when you import them to your computer, the tips in this article may help:
    iOS: Edited photos show original photo after import or in other apps
    All the best,
    Jeremy

  • I wish to reset my ipad.  However, when I selectGeneral Reset Erase all content and Settings, I am prompted for a a Restrictions Passcode (which I have never set).  I have now entered random codes 11 times and the ipad not reset. How do I get past this?

    I wish to reset my ipad (as advised by the Apple Store) to attempt to resolve an issue with a non-responsive part of the screen..  However, when I select General>Reset>Erase all content and Settings, I am prompted for a a Restrictions Passcode (which I have never set).  I have now entered random codes 11 times and the ipad has not reset. How do I get past this?  I am now at the point where I have to wait 60 mins before I can enter another random passcode.  I just want the ipad to clear down, erase everything so I can start again.

    The other option is to force iPad into Recovery Mode.
    http://support.apple.com/kb/HT1808
    Note: You need to be patient and repeat the above many times to recover your iPad

  • My iCloud on my phone is undJer another persons account I however am no longer with them and want to cut all ties and is there any way for me to change my iCloud account or will it affect my phone? And it's photos, apps, music?

    My iCloud on my phone is under another persons account I however am no longer with them and want to cut all ties and is there any way for me to change my iCloud account or will it affect my phone? And it's photos, apps, music?

    You have to delete the iCloud account but you can keep all your data such as Contacts, Calendars etc. when you delete the account you will prompted to "Keep on my iPhone".
    All your purchased content (like apps and music from iTunes Store) belongs to the original ID and you have to re-Purchase them under your Apple ID.
    Photos in Camera Roll remains in Camera Roll.
    Photos in photo stream that are not in Camera Roll must be saved in Camera Roll.
    Photo that previously synced from iTunes remains in photo library until you synced with another iTunes library (another computer).
    Also sign out from iMessages, FaceTime and Home sharing (Settings>Music)

  • HT201274 When I go to erase all content and settings my phone ask for a password

    When I go to erase all content and settings the phone ask for a password.

    The same password, you use to unlock your phone, use that passcode.

Maybe you are looking for

  • Transfer Z10 contacts to Q10, link does not copy everything.

    I sued the Blackberry link to trasnfer the Z10 data to the Q10 but quite a few peoples numbers just show up with out their name.  Does anyone know what the problem is?  I have tried everything and I am tired.  I just want my Q10 to work like the Z10.

  • How do I re-partition my iMac hard drive?

    Originally partitioned my 1TB internal to 250GB/750GB. Now it seems I need more space for my boot partition. I've used Time Machine to BU. So do I have to completely erase, booted from my Snow Leopard install disks, partition like I want to, and then

  • 100 percent width issue with smaller windows

    It took me many times to try and submit this, perhaps as the title had the percent sign? I kept getting the system errors and logging out automatically (see system error below) even though other similar posts have the % sign in the title.  So I am tr

  • How to insert personal signature on invoice

    I have created a work invoice and would like to add my personal signature when I email the form through the internet.  Is there any way for me to make a "signature copy" and add it to my invoice?

  • My MPEG1 movies won't import into iMovie

    I have two cameras. My Canon saves the movies in .AVI format and is able to import and be edited in iMovie. However, my new Sony H9 camera saves them in MPEG1 Muxed (have no idea what that means but inspector said it was that format). I can't open th