Assigning List Fields in a Custom Reusable Workflow

I am creating a custom Reusable Workflow and associating it with a Task List (base list) as well as another assigned Task List (associated).
I would like to assign the result of the "Assigned To" column to a "Workflow Variable" so that I can use this value for other Workflow operations as well.
However, I am having a hard time understanding how to perform lookups and assignments from lists in a Reusable Workflow.  In List-based workflows, I know that I can simply use "Current Item" and that seems to address most needs, but I have
no idea how to tackle this functionality in an SharePoint 2013 Reusable Workflow.
I have attached a screenshot of value assignment from SharePoint Designer for your review. The result of this value assignment needs to be assigned to a workflow variable.
In my test workflow, the assignment of the field from the list never occurs (it is not logged in my Workflow History List), so I am sure something is wrong with the way I am using it.
Any direction and advice on how to accomplish this is greatly appreciated.
Thanks.

Hi,
According to your post, my understanding is that you wanted to know how to use the lookup and assignment from the reusable workflow.
We could not get the “Assigned To” column in the reusable workflow.
As when we select the current item or current list, there is no “Assigned to” column in the reusable workflow.
We can only get the value when the user assigned by the workflow not assigned by the UI.
If you wanted to get the “Assigned To”, you can use the list workflow to achieve it.
I created a simple reusable workflow using a “Assign a task” action, we can get the assigned user as the below lookup, you can have a look at it.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • How to create publishing custom approval workflow will assign approvers.

    Hi All,
    I am new in sharepoint development.
    I have a page library where we add artical page with different department
    I want to create publishing custom approval workflow will assign approvers based on what department is selected for display.  The departments pull from the Other list.  On that list each department is assigned an approval group. That approval
    group is what should be used for approving the item.
    need send to mail with based on selected department approval group
    thanks in advance.

    Ok, what you're asking for is something that people do all the time, but you say you are new to sharepoint development... So...
    Here's how you would do it in SPD:
    http://blog.symprogress.com/2011/03/sharepoint-2010-dynamic-approvers-for-oob-approval-workflow/
    and here's how you can do it in visual studio:
    http://www.mpspartners.com/2011/10/SharePoint2010ApprovalWorkflowDynamicApprovers/
    Either way should work, it just depends on your comfort level inside the dev environment.
    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

  • Deploying a Reusable Workflow to a List Content Type using PowerShell

    We have a situation where deployment of a reusable workflow for a site content type cannot be completed through the web interface due to the number of libraries where the content type is in use (time-out on deploy and update).
    It was hoped that this could be accomplished with PowerShell but the method of deploying to a list content type appears to be different than it is to a list (all content types).
    The below snippet works fine for a list / all content types:
    function AddWorkflowToLibraries ($SiteCollection, $ctName, $WfName, $WfAssociationName)
    $site = Get-SPSite $SiteCollection
    [Guid]$wfTemplateId = New-Object Guid
    #Step through each web in site collection
    $site | Get-SPWeb -limit all | ForEach-Object {
    $web = $_
    $_.Lists | ForEach-Object{
    if($_.AllowContentTypes -eq $true)
    if($_.ContentTypes.Item("$ctName") -ne $null)
    write-host "Enabling workflow on" $_.Title "in" $_.ParentWebUrl
    $ct = $_.ContentTypes[$ctName]
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    $template = $site.RootWeb.WorkflowTemplates.GetTemplateByName($WfName, $culture)
    if($template -ne $null)
    $tasklist = "Tasks"
    $historylist = "Workflow History"
    if(!$web.Lists[$historylist])
    $web.Lists.Add($historylist, "A system library used to store workflow history information that is created in this site. It is created by the Publishing feature.",
    "WorkflowHistory", "00BFEA71-4EA5-48D4-A4AD-305CF7030140", 140, "100")
    if (!$web.Features["00BFEA71-4EA5-48D4-A4AD-305CF7030140"]) {
    Enable-SPFeature -Identity WorkflowHistoryList -Url $web.Url
    $wfHistory = $web.Lists[$historylist]
    $wfHistory.Hidden = $true
    $wfHistory.Update()
    if(!$web.Lists[$tasklist])
    $web.Lists.Add($tasklist, "This system library was created by the Publishing feature to store workflow tasks that are created in this site.", "WorkflowTasks", "00BFEA71-A83E-497E-9BA0-7A5C597D0107", 107, "100")
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.AddWorkflowAssociation($association)
    $_.Update()
    else
    Write-Error "Workflow Template not found"
    AddWorkflowToLibraries <Site Name> <Content Type Name> <Workflow Template Name> <Association Name>
    However changing the association as follows causes the script to still execute without a problem but the workflow doesn't appear for the content and the associations collection is empty:
    function AddWorkflowToLibraries ($SiteCollection, $ctName, $WfName, $WfAssociationName)
    $site = Get-SPSite $SiteCollection
    [Guid]$wfTemplateId = New-Object Guid
    #Step through each web in site collection
    $site | Get-SPWeb -limit all | ForEach-Object {
    $web = $_
    $_.Lists | ForEach-Object{
    if($_.AllowContentTypes -eq $true)
    if($_.ContentTypes.Item("$ctName") -ne $null)
    write-host "Enabling workflow on" $_.Title "in" $_.ParentWebUrl
    $ct = $_.ContentTypes[$ctName]
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    $template = $site.RootWeb.WorkflowTemplates.GetTemplateByName($WfName, $culture)
    if($template -ne $null)
    $tasklist = "Tasks"
    $historylist = "Workflow History"
    if(!$web.Lists[$historylist])
    $web.Lists.Add($historylist, "A system library used to store workflow history information that is created in this site. It is created by the Publishing feature.",
    "WorkflowHistory", "00BFEA71-4EA5-48D4-A4AD-305CF7030140", 140, "100")
    if (!$web.Features["00BFEA71-4EA5-48D4-A4AD-305CF7030140"]) {
    Enable-SPFeature -Identity WorkflowHistoryList -Url $web.Url
    $wfHistory = $web.Lists[$historylist]
    $wfHistory.Hidden = $true
    $wfHistory.Update()
    if(!$web.Lists[$tasklist])
    $web.Lists.Add($tasklist, "This system library was created by the Publishing feature to store workflow tasks that are created in this site.", "WorkflowTasks", "00BFEA71-A83E-497E-9BA0-7A5C597D0107", 107, "100")
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.ContentTypes[$ctname].AddWorkflowAssociation($association)
    $_.ContentTypes[$ctname].Update()
    else
    Write-Error "Workflow Template not found"
    AddWorkflowToLibraries <Site Name> <Content Type Name> <Workflow Template Name> <Association Name>
    The only change is:
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($template, $wfName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $true
    $_.ContentTypes[$ctname].AddWorkflowAssociation($association)
    $_.ContentTypes[$ctname].Update()
    But unlike the list version, the association doesn't appear to be saved and no error is generated.
    Is anyone aware of what may cause this or have an example in C# that may explain something my script is missing?

    Hi Garry,
    After you associate the workflow to the content type, you should update the update the content type using
    $ct.UpdateWorkflowAssociationsOnChildren($true,$true,$true,$false)
     method.
    Here is the completed script:
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    $site=Get-SPSite "http://serverName"
    $web=$site.OpenWeb()
    $list=$web.Lists["ListC"]
    $taskList=$web.Lists["Tasks"]
    $historyList=$web.Lists["Workflow History"]
    $ct=$list.ContentTypes["Link"]
    $culture=New-Object System.Globalization.CultureInfo("en-US")
    $wfTemplate=$web.WorkflowTemplates.GetTemplateByName("Three-State",$culture)
    $associationWF=[Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateListContentTypeAssociation($wfTemplate, "myThreeStateWF",$taskList,$historyList)
    $ct.WorkflowAssociations.Add($associationWF)
    $ct.UpdateWorkflowAssociationsOnChildren($true,$true,$true,$false)
    Here is a demo about how to update it using C#
    http://www.thorntontechnical.com/tech/sharepoint/sharepoint-2010-associate-workflow-to-content-type-in-a-feature
    Wayne Fan
    TechNet Community Support

  • Read External List Field on Custom ECB action

    I tryed to show a Custom ECB action on an External List.
    The External List have a Field "LOGICAL_ID" with an IP address, but the GetAttributeFromItemTable works only with Standard List.
    How i read the External List Field and open some shell or browser actions with these field?
    <script language="Javascript" unselectable="on">
    // START: Override Function
    function Custom_AddListMenuItems(m,ctx)
    var strDisplayText = "Ping";
    var strDisplayText1 = "Browse Http";
    var strDisplayText2 = "Telnet";
    var strDisplayText3 = "SSH";
    var strDisplayText4 = "Remote Desktop";
    // for test strDisplayText = currentItemID;
    var LOGICAL_ID = currentItemID;
    // var LOGICAL_ID = GetAttributeFromItemTable(itemTable, "LOGICAL_ID");
    // var LOGICAL_ID = itemTable.getAttribute("LOGICAL_ID");
    var strAction = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('ping -t" + LOGICAL_ID + "');window.refresh";
    var strAction1 = "http://" + LOGICAL_ID;
    var strAction2 = "telnet://" + LOGICAL_ID;
    var strAction3 = "telnet://" + LOGICAL_ID + "/? -ssh";
    var strAction4  = "javascript:var x = new ActiveXObject('WScript.Shell');x.run('mstsc /v " + LOGICAL_ID + " /admin');window.refresh";
    var strImagePath = "";
    // Add menu item
    CAMOpt(m, strDisplayText, strAction, strImagePath);
    // add a separator to the menu
    CAMSep(m);
    CAMOpt(m, strDisplayText1, strAction1, strImagePath);
    CAMOpt(m, strDisplayText2, strAction2, strImagePath);
    CAMOpt(m, strDisplayText3, strAction3, strImagePath);
    CAMOpt(m, strDisplayText4, strAction4, strImagePath);
    // false means that the standard menu items should also be rendered
    return true;
    // END: Override function
    </script>

    Hi,
    If you want to disable the Rich Text Field dynamically, you can consider to use JavaScript and JavaScript Client Object Model.
    The “disable” attribute seems not work on Rich Text Editor control, so we can set the “display” attribute as “none” to hide the control instead:
    <script type="text/javascript">
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue").style.display = "none";
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_toolbar").style.display = "none";
    document.getElementById("ctl00_PlaceHolderMain_rftDefaultValue_iframe").style.display = "none";
    console.log('hide');
    </script>
    You will need to find out the id of the toolbar and textbox of the Rich Text Editor control in page using IE developer(F12) first, then replace the ids in the script above.
    We can get values of list items using JavaScript Client Object Model:
    http://msdn.microsoft.com/en-us/library/office/hh185006(v=office.14).aspx
    More information about JavaScript Client Object Model:
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    Feel free to reply if there are still any questions.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Three State Workflow (assigned to field)

    I use the 3 State WF in a library. First and second task were assigned each to a person from 1 of 2 list fields of the library. But after first person completes the task and second task is created the person from second list field ist inserted in first
    list field. Why? It's a bug? Is there a workaround? (I don't have the possibility to use normal WFs, I can only use this WF)

    this is the first page of the WF settings (you ever saw this?)
    On the second page you can insert details for the first and second task, which the WF creates. There is a field 'Task Assigned To' which I filled with the content from a column of type 'person or group' of the library (Responsible Review). This one is for
    the first task, the other for the second is configured in the same way with an other 'person or group' column (Responsible Release).
    Before I start the WF, there are 2 different persons in the 2 columns, after completing the first task the WF creates the second task, and then (I can't see, is it after completing first task or after creating second task) field 'Responsible Review' in the
    library changed it's content to the content of column 'Responsible Release'

  • Adding reusable workflows to lists

    Hi
    I designed a reusable workflow using sharepoint designer and saved it as a template. then i exported the template and modified the feature.xml and again created the .wsp file. then &nbsp;deployed it to my sharepoint server using a powershell script.
    then i went to my site and activated the feature for that particular workflow. but when i go to the list and try to add a new workflow the one i deployed is not displayed there.
    both the list and the reusable workflow use the same content type and i tried to add a new workflow by selecting the available templates under the same content type?
    is there a way to connect a list to a reusable workflow which is deployed as a .wsp file? i am new to sharepoint and having issues on fixing this. your kind support is highly appreciated.
    thank you.

    Was it really a reusable workflow? 
    What modification did you made to feature.xml file
    I assume you followed below steps
    http://plexhosted.com/billing/knowledgebase/255/How-to-create-a-reusable-workflow-in-SharePoint-Designer-SharePoint-2010.html
    http://www.mssharepointtips.com/tip.asp?id=1095
    http://technet.microsoft.com/en-in/library/ff608128%28v=office.14%29.aspx
    Try below
    http://www.codeproject.com/Articles/70867/Reusable-and-Globally-Reusable-Workflows-in-ShareP
    If this helped you resolve your issue, please mark it Answered

  • Form error in reusable workflow

    Hi all
    I have taken a copy of the 'Approval - SharePoint 2010' workflow, and plan to customise it as a reusable list workflow.  After publishing the workflow, and adding it to a list in my site, i am trying to start the workflow with an approver and recieve
    the following error:
    It seems that the error is related to the Approvers field as it disappears when the error pops up.  I've noticed that if the Approvers field is left blank, then the form submits without error (i would expect the opposite to be happening).  I've
    also tested the 'Approval - SharePoint 2010' workflow on my list and this works fine.
    The form and workflow have not been customised in any way at this point.
    The error log reports:
    07/17/2012 09:55:26.42  w3wp.exe (0x2A58)                        0x3878 InfoPath Forms Services       
    Runtime - Business Logic       82g1 Critical There was a form postback error. (User: ****************, Form Name: Template, IP: , Request: *********************/_layouts/IniWrkflIP.aspx?List={d316b0ca-6659-46ea-86cb-db02f047704f}&ID=24&TemplateID={3983d8f1-b720-4175-bda7-d9bd74341446}&Source=*************/Lists/ChangeList/AllItems.aspx,
    Form ID: urn:schemas-microsoft-com:office:infopath:workflowInitAssoc:-AutoGen-2012-07-17T08:51:21:140Z, Type: SchemaValidationException, Exception Message: Schema validation found non-datatype errors.) ac07586b-01da-4fcc-bc30-be11fd21964d
    Can someone shed any light on this?
    Thanks
    Asher
    Fast, Cheap, Good. Choose any Two!

    Just so we are on the same page, I followed what you did exactly. I created a new site collection and root web using the (Team Site Template). I took a copy of the "Approval - SharePoint 2010" Workflow using a machine with the KB2553322 Patch. It created
    a Reusable Workflow called "Workflow 1". I attached it to the default Documents Library. And, as expected, I encountered the same issue. "The form cannot be submitted because of an error."
    I then opened the Workflow in the Virtual Machine I created to test this patch (After installing InfoPath I had to remove the update again even though it was still a pending update). Turns out there are 2 updates under KB2553322 one for Office Professional
    Plus and one for SharePoint Designer, you need to remove both.
    To verify that it is the same problem. In SharePoint Designer, open the site, go to All Files, Workflows, the Name of the Workflow ("Workflow 1" for me) and Open WorkflowName.xoml.wfconfig.xml, then click Edit. Now, in the XML Path, WorkflowConfig ->
    Initiation-> DefaultData -> dfs:myFields -> dfs:dataFields -> d:SharePointListItem_RW, the node will look like
    <d:Approvers>
    <d:Assignment>
    <d:Assignee xsi:nil="true"/>
    <d:Stage xsi:nil="true"/>
    <d:AssignmentType>Serial</d:AssignmentType>
    </d:Assignment>
    </d:Approvers>
    When it should look like:
    <d:Approvers>
    <d:Assignment>
    <d:Assignee/>
    <d:Stage xsi:nil="true"/>
    <d:AssignmentType>Serial</d:AssignmentType>
    </d:Assignment>
    </d:Approvers>
    So, how do you fix it? and also without SharePoint yelling at you. I also tried just publishing both workflow and InfoPath form with no success.
    Open the Workflow in SharePoint Designer
    In the Ribbon click Initiation Form Parameters
    Click OK without changing anything
    Republish the workflow, It will warn you that the infopath form has been customized.
    Open the Form that says needs update, it will prompt you that the workflow has changed and InfoPath will update the form.
    Save and Publish the Form
    Publish the Workflow, again
    After that, if you check the .xoml.wfconfig.xml file, it will be updated to the proper version. If you run the workflow in SharePoint, it will still have any customization you had before, with the added bonus that it will work.

  • Assigning a task based on an approval workflow

    Hello,
    Is there a way to create a workflow that includes the following steps without coding:
    1. A user submits an IT service request.
    2. The request is approved by a Supervisor.
    3. The IT Manager assigns the request to a technician.
    4. The technician completes the request and attaches the appropriate documentation to the request.
    5. The IT Manager sends the completed work to the user.
    Thanks in advance.

    Hi Amatullah,
    The following extention for the Workflow Activities available in SharePoint Designer will allow you to create one or more workfows that satisfy your requirements:
    http://spdactivities.codeplex.com/
    The worklfow would be configured to start when a new item is added to the list / library, which would assign an approval task (or collect approval status) from the approver (Supervisor). 
    After the manager assigns the request to a technician and the technician completes the request, the manager may want to confirm/close the request.  this would allow the worklfow to continue and/or respond by sending the completed work to the user.
    You can either "Collect data from a user" to obtain the "User" to assign the request, have the workflow "Wait for a field change" to obtain the assign to user, as well as other alternatives to get the Assign To details for each
    step of the process.  A separate field for each would probably be more suitable than re-assigning the task using the same "Assigned To" field each time, as the details each participant will be captured (not an issue if using the "Collect
    data from a user" action, as the Assigned To information will be available in the task item created by the workflow).
    The custom activities above allow you to do the following, which may assist with your solution:
    Specify the sender of an email
    Attach list items as email attachments
    Without the custom activities, you could develop a similar solution, but you won't be able to attach list items (include links instead), or specify the sender.  The approval and request delegation process can be achieved using OOB Workflow Activities
    available in SharePoint Designer.
    Learn SharePoint 2010
    SharePoint Development
    SharePoint Tutorials (Blog)

  • Can't retrieve approval status in Globally Reusable Workflow (Approval - Sharepoint 2010)

    For day's i am trying to implement the following in one of the standard, out of the box, Globally Reusable Workflow with Sharepoint Designer 2010:
    If Current Item:Approval Status not equals 0:#Approved Start Approval Workflow Task process on Current Item with Parameter:Approvers Else //Nothing
    This is to prevent that a workflow is started if the item is already approved! The strange thing is, a buddy of mine has also Sharepoint 2010 and he can select in the DropDown list -Current Item: -> Approval Status..
    But the only things I can select are the following:
    Content Type
    Created By
    ID
    Modified
    Modified By
    Title
    I don't understand what is going wrong! What am i forgetting to configure or bind or set?

    I have found the solution!
    I have setup an test environment, Sharepoint 2013 on MS Server 2008R2 and installed Sharepoint Designer 2013. When I now edit the default out of the box "Approval - Sharepoint 2010", if you enter the condition "if current item field equals value", you can
    now select "Approval Status"!!
    So this means that it IS available after all! After a lot of trying, searching, this is the solution in a Sharepoint 2010 environment, installed on MS Server 2008R2:
    Edit the (global or copied version if you want) workflow.
    Add the condition "if current item field equals value" as a step.
    Select from the item field: Content Type
    Click on "equals" and change it to "not equals"
    Then click on the condition and enter manually the following: 0;#Approved
    Move the task "Start Approval Workflow Task..." up so it is a part of the condition "If.. "
    Add an Else condition
    Enter here your custom action or log to show the user that the Task is not performed.
    Save the workflow.
    We now have to manually edit the Workflow Rules file.
    In Sharepoint Designer 2010, click at the left side of the ribbon on "All Files".
    If you have created a custom workflow, you can find the "Workflow.xoml.rules" file, in the folder
    Workflows/"Your custom workflow"/"CustomWorkflow.xoml.rules".
    If you are using the global, out of the box Workflow, you can find the .rules file in:
    _catalogs/wfpub/Approval - SharePoint 2010/ReviewApproval_1033.xoml.rules
    Click on the file, then in the next screen click on "Edit file" under Customization. 4.Search for the string "ContentType" 5.When you have found the string, it looks a bit like this:
    ns1:String xmlns:ns1="clr-namespace:System;Assembly=mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">ContentType ns1:String
    (When you look a few lines below this line, you see your added condition 0;#Approved)!
    6.Replace the string ContentType with: _ModerationStatus 7.Save the file! 8.Open in the current directory the "Workflow.xoml" file (this is the workflow itself) 9. Click on the Save button, it will give you a notice:
    A more recent version of _catalogs/wfpub/Approval - SharePoint 2010/ReviewApproval_1033.xoml.rules has been saved to the server by "user" on 1/5/2014 10:50 AM.
    Do you want to replace this with your file?
    Click NO! (Important, otherwise it will replace it with the default rules file, and nothing has changed!)
    Close Sharepoint Designer 2010, reopen SPD2010 and go to the workflow.
    Edit the workflow and you'll see the following now:
    "If Current Item: equals 0;#Approved"
    The field Content Type is now gone! This is correct so don't worry!
    Publish the workflow and you are done!
    Check now on a library that has a link to the edited workflow, when you start a new Workflow on a Approved-Major version of the document, what the outcome is:
    The workflow is discarded because of the condition and nothing happened, so your document stays on the most recent Approved-Major version and is not published back to a previous version number!!
    Conclusion: I think that the Sharepoint 2010 Designer, is missing that specific "Approval Status" field, but with the solution i have just given, you can solve this!
    C# for the win!

  • How Assigned TO field will be updated in "start Approval process" Task Action

    I have created a reusable workflow in sharepoint designer. Am using “start Approval process“ Task Action. I have a question in “start Approval process“ Task Action.
    I have username field in the list.  I have created a task form field with name username in “start Approval process“ Task Action. I have assigned list username field to task field username field.
    I have entered a user details in list user name field for new list item. Once the workflow has been started for that item a mail has been sent to the user whose name I have entered in the list user name field. Task has been assigned to the user whose name
    I have entered in the list user name field.
    When I have checked start Approval process task a send mail activity is present (Email Task notification currentitem:Assigned TO) .
    I have not update Assigned To field explicitly.
    1. Where / how the Assigned TO field is getting updated ?
    2. Workflow Initiation and task creation will be done internally by the user who created the item in the list?
    Thanks

    Hi,
    According to your post, my understanding is that you had questions about the “start Approval process“ Task Action.
    When you add the “start Approval process“ Task Action, you need to to select the user who the task assign to.
    To assign the user whose name you have entered in the list user name field, you add action as below:
    After you select the user, the Assigned TO field is getting updated.
    In addition, workflow Initiation and task creation will be done internally by the user who created the item in the list.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to get the list of IDM users in a workflow.

    Hi,
    I wanted to get the list of IDM users in a workflow into a list.Now I tried to use getObjects Method,I do not have the display session here,I passed the workflow context or WF_Context.But it is giving exception like context null .
    I used the same method in a form and it worked.How can I get the list of users in a workflow.It is for customizing reports.
    Thanks and Regards,
    Pandu
    Any Idea on how to customize reports including attributes from resources and auditing attributes etc.Any help would be really great.
    Thank you.

    Hi John,
    I get this exception WorkItemForm: no id.
    This comes when I click on the other column.I generate the data needed in a report and display it as a sorting table when I get the data.
    I want to give the user ability to sort data by different columns.But when I click any column I get the exception
    WorkItemForm: no id
    How can I save a workitem on a manual form before invoking it from a manual action.
    Here is the code snippet
    <Field name='tblUsers'>
            <Display class='SortingTable'>
              <Property name='selectEnable' value='false'/>
              <Property name='align' value='left'/>
              <Property name='linkEnable' value='false'/>
              <Property name='sortEnable' value='true'/>
              <Property name='width' value='400'/>
              <Property name='columns'>
                <List>
                  <String>Account id</String>
                  <String>First Name</String>                      
                </List>
              </Property>
            </Display>      
            <FieldLoop for='row' in='_searchList[*]'>
              <Field name='enduserId'>
                <Display class='Label'>
                  <Property name='value'>
                    <block trace='true'>
                      <invoke name='getAccountId'>
                        <ref>row</ref>
                      </invoke>
                    </block>
                  </Property>
                </Display>
              </Field>
              <Field name='lblfirstname'>
                <Display class='Label'>
                  <Property name='value'>
                    <invoke name='getAttribute'>
                      <ref>row</ref>
                      <s>firstname</s>
                    </invoke>
                  </Property>
                </Display>
              </Field>
         <FieldLoop>      I think I may need to save some workItem,That is why this may be giving the error.How can I correct this.
    Thanks,
    pandu

  • Update Managed Metadata field in SharePoint 2013 Designer Workflow for O365

    Hi Guys,
    I need to update the managed metadata field in SharePoint Custom List using Workflow but its not working. I have also tried to use the HTTP WebService POST Operation but no luck.
    Am doing this for a SharePoint Online (O365) Site.
    Has anyone worked on something similar and was able to get it running ?
    I saw a post to create a custom Workflow Activity but I don't have a choice to go with the custom code option.
    http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
    I was able to achieve this by creating a SP 2010 based Workflow for O365. Which means that it worked well with SP 2010.
    Is there a different way to do it in 2013 ? I tried almost all options apart from creating custom Activity but nothing worked out. 
    Any help would be great.
    Thanks,
    Nutan
    Nutan Sharma

    Hi Nutan,
    According to your description, my understanding is that you want to update Managed Metadata field with SharePoint 2013 Designer for SharePoint Online.
    As far as I know, there is not an OOB action to achieve your requirement with SharePoint 2013 Designer for SharePoint 2013. Customizing a workflow action is a better option to achieve it.  Why didn’t you customize a workflow action as Patrick’s blog?
    In addition, please take a look at the article about Nintex workflow, check whether it is useful for you:
    http://habaneroconsulting.com/insights/setting-managed-metadata-fields-in-a-nintex-workflow#.UykBSf6KDHo
    As this issue is about SharePoint Online, I suggest you create a new thread on SharePoint Online forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint . More experts will assist you.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Send e-mail notification if "Assigned to" field is empty

    SCSM 2012 SP1.
    I need to send e-mail notification to a distribution list if somebody creates an incident with empty "Assigned to" field. It could happen when an user sends new service request using self-service portal, incoming e-mail is processed,
    or a support team member forget or cannot fill that field.
    E-mail subscriptions do not work. I can create a rule with "User name is empty" condition, but it is never triggered.
    I can use template with "Primary owner" and "Source" fields filled in advance to create SSP incidents. After that I can create workflow which sends notification to that person when an incident is created with "Portal"
    specified as source. It works, but I can send notification to a single person only, not to a distribution list. What if that person is absent?.. In addition, I cannot use a workflow if "Assigned to" field is not filled during manual creation of the
    incident.
    Is it possible to send such notifications at all?

    Check if this helps you
    http://blogs.technet.com/b/babulalghule/archive/2013/05/05/how-to-configure-notification-to-notify-if-assigned-to-user-is-empty-or-incident-is-not-assigned.aspx
    Thanks,
    Babulal Ghule
    http://blogs.technet.com/b/babulalghule

  • Sharepoint2010 Reusable workflow Out come status problem

    Hi ,
    I have one reusable workflow which is associated to library. it having more conditions and statements. this is
    main workflow in my project. at a time more than 10 users are working on this workflow.
    All the tasks are storing in task library.
    based on Outcome status (Workflow column)field my workflow going next level.
    if Outcome status is submit or complete it's going to next level.
    some items Outcome status been updating as a "cancelled". In workflow i have not given this condition. But it updating like this.
    even i am unable to found any error/exception in log file.
    so once status has updated as a "Cancelled" workflow not going to next level. in that case i am simple terminating the workflow running from first step.
    so please give so suggestion to overcome this issue.

    Hi,
    Is this SPD workflow? The workflow task status changes to Cancelled if the task is no longer required to be responded by the individual. Do you have any condition in the workflow where it is assigning task to multiple people but only one response is requred?
    In this case, workflow will update one task as completed and other tasks as Cancelled. Check the completion condition of your workflow. Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Fields missing in Designer 2010 workflow

    I created few yes/No column through Association Columns in Designer but now the value is missing and my workflow crashes. i fixed it saved and published the workflow yesterday. when i opened the workflow this morning i see the same issue.
    when i tried to modify i see this

    Hi Madnan,
    I tested the same scenario per your post and I got the same results as you got.
    It seems that the association column is designed for reusable workflows, and if we use association columns in list workflows, the issue will occur.
    In the .xoml file of the workflow, the reference of the associated column should be like the image1, however it will change to image2 in list workflow after refresh the workflow:
    So the error occurs when we run the list workflow.
    I recommend to use association column in reusable workflows instead of list workflows.
    More references about association column:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2011/05/02/association-columns.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292551.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for