Workflow variables

While I've been maintaining SharePoint servers for a log time, only recently i started to dab into workflows.  I am struggling to understand how data is passed from the "collect data from user".  For example if I want to collect car_type,
car_color, and car_value from the user,  I will assign these variables in the task, then set it to car:ID as the place holder.  When is time to email someone the info, i can't seem to find the correct car:id and values within the car: id.  Any
help would be greatly appreciated. 

Hi John and thanks for your reply.  This is the same document i am trying to follow.
1.  I have followed the document to the letter.  The problem is when set and done, in the "Define Workflow Lookup" i do not get the source as task.   I am using designer 2013 but all my workflows are created on 2010 platform.  My
screen looks like:
Data Source:  "Association:Task List"  is the only lookup available field i can return "Review Status"
2. The bottom data binding is even more confusing:
There is no "workflow data" field available.  I only have "Workflow ID, Workflow list ID, and Workflow name" which none returns the correct values.
3.  The document describes getting and storing two string Values " Reject and approved".  But following the document I don't see this happening.  I am guessing that I have to use the "set workflow variables" twice:  one
for approved and one for reject to use at the later time.
Greatly appreciate for any help. 

Similar Messages

  • Update workflow variable in a form associated to manual action

    I have a view called userfind in my workflow,
    I pass this view to a search form, in this form I would like to update
    this view.
    I am passing this view object as variable to the manual form.
    In my form I am trying to update this object as follows
    <Field name='variables.userfind.query'>
    <ref>query</ref>
    </Field>
    User find object is correctly updated when this block of code is executed, but when the control goes out of the form (back to the 'action' that calls this form) I dont see the updated value. The value of userfind.query is same as before (i.e. before it was updated in the form).
    Why isn't the updation visible outside the form?
    Thanks in advance!

    very good question !
    I'm working on something similar and wondering about form field variables in general.
    Generally it looks like form fieldnames correspond with userview attribute and editing the field, edits the view directly so it is ready for CheckIn.
    I'd also like to know if this methodology applies to other views and WorkItem views which may contain general workflow variables. If so, I assume they can be editable by the form if the fieldname is the same as the var name.

  • Permissions needed for user to define workflow variable

    Hi all
    im using a workflow on sharepoint designer 2007, running on list of customer orders. the workflow is trying to use data from customer list.
    In the workflow i used the "define workflow variable" step on customer order list. the users who are using the order list have Contribute permission so they can add items. on the customer list they have read permission.
    when an item is created, the workflow is suppose to generate the varieble by combining data from the two lists: selecting the customer from the current order item and suppose to combine it with data from the customer list for that specific customer
    and keeps it in the variable.
    for users with full control permission for the site, the workflow is completed ok. for the users with the contribute and read permissions it ends with an error and doesnt store the variable (i cheked it by storring the variables in the workflow history).
    what are the permission needed to manage to do the action of storring the variable?
    or any other ideas for the error?
    Thanks in advance

    Hello Cajuntank and welcome to the Palm forums.
    Palm Desktop needs to be installed with the local administrator priviledge during the install of Palm Desktop, the HotSync Manager, the first HotSyn sync, and the installation of any third-party conduits on the desktop.
    After that, the local admin rights can be revoked.
    Alan G

  • How to access workflow variables from business classes?

    In WLI2.1 the com.bea.wlpi.server.admin.Admin bean was useful to retrieve workflow
    variables for a particular instance id.
    Is there anything similar in 8.1?
    We have to do the following:
    In the workflow, when a particular task gets created, a user (claimant of the
    task) should be able to pull the workflow xml data in a JSP. The user may update
    the data from the JSP and then the updated xml needs to be saved in the workflow.
    Then, onTaskCompleted, the updated xml will follow the rest of the workflow.
    How to do this is 8.1?
    Thanks in advance.

    Hi,
    Pls check for setRequest/setResponse in task control and setTasksRequest/setTasksResponse
    i task worker control. Hope this will resolve your issues as they have XmlObject
    as parameter.
    Regards
    Sai
    "Aparna" <[email protected]> wrote:
    >
    In WLI2.1 the com.bea.wlpi.server.admin.Admin bean was useful to retrieve
    workflow
    variables for a particular instance id.
    Is there anything similar in 8.1?
    We have to do the following:
    In the workflow, when a particular task gets created, a user (claimant
    of the
    task) should be able to pull the workflow xml data in a JSP. The user
    may update
    the data from the JSP and then the updated xml needs to be saved in the
    workflow.
    Then, onTaskCompleted, the updated xml will follow the rest of the workflow.
    How to do this is 8.1?
    Thanks in advance.

  • How to access Workflow variables in Form Designer?

    Hello,
    I am wanting to set certain subforms to readonly depending on which part of the workflow the form is currently on. I already have the JavaScript code working to set the subform fields to readonly, but now I cannot figure out how to trigger this and where do I keep a variable to keep track of which part of the workflow I am currently in.
    I assume I will have a variable in the workflow itself and then I can use the Set Value QPAC to change the variable for each workflow step before it goes to the User QPAC, but what about within the form? I don't understand how the form javascript will know to execute, so how does my workflow "talk" to the form to set these fields to readonly?
    Right now the JavaScript code is sitting in the root::initialize part of the form. I was assuming I could have something like "if my workflow variable is equal to XX then set this subform to read only". But, how do I access my workflow variable in the form designer?
    Also, since I have digital signatures, I am having to pass all the form data in document variables, will this affect how I need to do this? I was also thinking of possibly accessing/setting a hidden field in the form, but thought the above way may be better.
    I hope that made sense!
    Thank you,
    Jennifer

    To follow-up, I spoke with Adobe support this morning and they said that I cannot access Workflow variables within Designer (besides those Workflow variables that are already provided).
    He mentioned that if I use the hidden fields, that I would need to Render the form each time before going to the User to trigger this to happen. So, I am not sure what I will do just yet. I probably not worry about making the fields readonly for the time being; it was a little extra thought I had and isn't required for our process.
    Thank you,
    Jennifer

  • SPD worflow -- hyperlink in a workflow variable

    Hi,
    In SPD, is it possible to add a hyperlink in a variable in the action "Set Workflow Variable"?
    Thanks in advance.

    Hi wkpli,
    According to your description, my understanding is that you want to send an email to a user , and the email contains a link to a SharePoint   page.
    You can copy the URL of the page, paste the URL into the Email body, then the email that the user receives will contain the URL of the page. The detailed process is :
    1. Copy the URL of the page
    2. Open SharePoint Designer 2010, open your workflow
    3. Edit the workflow, add ‘Send an Email’ action
    4. Click on ‘these users’, then type the receivers
    5. Click on the hyperlink symbol, paste the copied URL to Address
    Like the screenshot:
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Workflow variable visibility

    Hello IDM experts,
    I have a workflow which calls checkinView in com.waveset.session.WorkflowServices, setting user.viewoptions.Process. So the new process specified in user.viewoptions.Process is being launched, but doesn't look like it inherits any of the context of the parent workflow, even WF_CONTEXT is different.
    Does anybody know of any way to share some context (variables) between such invokations?
    Thank you.

    Hi,
    According to your post, my understanding is that you want to use a workflow variable to get each beginning digit of a choice column’s values in a list workflow and store the workflow variable value to a new item in a new list.
    I recommend that you can create this list workflow as below to implement it in your environment.
    Then, you can go to “Start Options” to check “Start workflow automatically when an item is created”, publish this workflow and test if it works.
    When an new item is added in the Choice list, the results in the Choice list and the Store list are shown as below:
    Thanks,
    Yumi Fu
    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]

  • Unable  to work with Workflow Variable through SPML launchProcess Request ?

    Hi,
    I am trying to work with launch process request, which worked well with no error message when I am just using the workflow call through SPML "launchProcess Request " call. But when trying to use any workflow variable then getting exceptions. I don't undertsand about the error message. Is this trying to convert the variable in SIM variable.
    <spml:extendedResponse xmlns:spml='urn:oasis:names:tc:SPML:1:0' xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' result='urn:oasis:names:tc:SPML:1:0#failure'>
    <spml:operationalAttributes>
    <dsml:attr name='errorMessages'>
    <dsml:value>Couldn't find method get4() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get4()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get3() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get3()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get2() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get2()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get1() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get1()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    <dsml:value>XPRESS <get> exception:</dsml:value>
    <dsml:value>Couldn't find method get0() in class java.lang.String</dsml:value>
    <dsml:value>java.lang.String.get0()</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Missing view id.</dsml:value>
    <dsml:value>Unable to checkin view, missing view id</dsml:value>
    </dsml:attr>
    Below is the code I am using .
    LighthouseClient client = new LighthouseClient();
         client.setUser("configurator");
         client.setPassword("configurator");
         String url = "http://xyz:8080/idm/servlet/rpcrouter2";
    client.setUrl(url);
         ArrayList mslist = new ArrayList();
         idlist.add("12345");
         System.out.println("UserList :- "+idlist);
         ExtendedRequest extReq = new ExtendedRequest();
         extReq.setOperationIdentifier("launchProcess");
         extReq.setAttribute("process", "TEST_WF");
         extReq.setAttribute("idList",idlist); //workflow Global variable
         ExtendedResponse res = (ExtendedResponse)client.request(extReq);
         if (res.getResult() .equals(ExtendedResponse.RESULT_SUCCESS))
         System.out.println("Workflow was successfully executed");
              } catch (Exception e) {System.out.println("Error : " + e.getMessage());}
    Please suggest me if I am using anything wrong. Its urgent... it halted my work.
    Regards,
    vinash.

    hi,
    in java code you set variable:
    extReq.setAttribute("my_email", "[email protected]");in express code of your workflow (you also can see it in your debugger if you set a breakpoint a the beginning of your workflow):
    <ref>my_email</ref>

  • Workflow variable

    I'm creating a list workflow in SharePoint Designer 2013 and I use a choice field with checkboxes in the SharePoint list.
    There are approximately 80 checkboxes with values like '10 Test/test test', '20 test2-test2'.
    These values are to be sent to a web service that makes some calculations. (the ws only needs the first digits)
    To get the checked values I've used Current Item: Choices, Comma Delimited. Since the values contains 'one or more '/ in some cases, I had to change that character to something else and therefor used a workflow variable to store the new list in.
    It works fine, but if the variable exceeds 255 characters the workflow stops and gets canceled.
    Is there a work around to store more characters in the variable or is there a way to change the checkbox list to have a value of  '10' and a name "10 Test/test test"?
    Or maybe use a loop to only get the digits in the beginning and then store them in a workflow variable?

    Hi,
    According to your post, my understanding is that you want to use a workflow variable to get each beginning digit of a choice column’s values in a list workflow and store the workflow variable value to a new item in a new list.
    I recommend that you can create this list workflow as below to implement it in your environment.
    Then, you can go to “Start Options” to check “Start workflow automatically when an item is created”, publish this workflow and test if it works.
    When an new item is added in the Choice list, the results in the Choice list and the Store list are shown as below:
    Thanks,
    Yumi Fu
    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]

  • How to avoid escaped XML in "Set Workflow Variable" | "By Composing"

    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the right pane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document the XML I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML in its
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

    Hi,
    I also have this problem. It seems that a crude way around it, is to use a quick
    fix via calling a business operation that performs string substitution to replace
    the escaped entity references (<) and (>) with "<" ">". I have done this
    and the approach works for me. Just be careful and make sure that the xml string
    your are cleaning up doesn't contain any of these entity reference that you would
    like to keep. Otherwise it will definitily break your xml. I hope you have that
    luxury.
    The easiest way to do is is to write a StringUtil class with a static replace
    function, replace(source, old, new), expose this method as a business operation,
    then call twice to convert your xml string.
    I know this is pretty pathetic, but might help in the meanwhile until BEA provides
    this functionality.
    Lukas
    "Smita Agarwal" <[email protected]> wrote:
    >
    Hi Paul,
    I am getting the exact same problem , have you found a solution for
    it??
    It will be great to know if this problem is solved.
    I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
    this problem
    is occuring
    cheers,
    Smita
    "Paul Rooney" <[email protected]> wrote:
    Hi, I have a proplem building an XML document using the action : "Set
    Workflow Variable" | "By Composing" dialog.
    The value of an element on the left pane is a variable in the rightpane.
    This variable contains a snippet of XML.
    The problem is that when I print out the newly created document theXML
    I
    added to it from the variable has been escaped :
    In the example below I created a new xml document called new XML inits
    child_2 element I set its value to the XML String "xml".
    As you can see, the value of child 2 has been escaped. Is there a way
    to
    turn this feature off ??
    <Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
    <started>2002-01-30 10:02:35.009</started>
    <requestor>wlpisystem</requestor>
    <templateid>17</templateid>
    <template-name>TEST ESCAPE XML</template-name>
    <templatedefinitionid>17</templatedefinitionid>
    <instanceid>10005</instanceid>
    <actions>
    <activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
    1"/>
    <setvariable time="2002-01-30 10:02:35.009" variable="xml">
    <StartActivity><businessRef>bus ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity ID</activityId></StartActivity>
    </setvariable>
    <setvariable time="2002-01-30 10:02:35.011" variable="newXML">
    <Root>
    <Child_1>Child 1 data</Child_1>
    <Child_2><StartActivity><businessRef>bus
    ref</businessRef><orderRef>order
    ref</orderRef><activityId>Activity
    ID</activityId></StartActivity></Child_2>
    </Root>
    </setvariable>
    <marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
    1"/>
    <workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
    </actions>
    <completed>2002-01-30 10:02:35.037</completed>
    </wlpirequest>
    >

  • Workflow email using workflow variable

    hi All,
    I will have a moderate to high use of emails in my site using workflow. Every change in "mode" field, will send out an email. I have various teams who should be informed this this change. The email body/message remains the same only TO or
    CC will change upon criteria of tracks. I have groups created in sharepoint which have the key people from each team.
    Question:
    1. how can I use same email to avoid lot of work now and later if there are changes suggested to email.
    2. How can I dynamically choose the sharepoint group to send emails based out criteria in workflow.
    3. can I use Variable to decide the name of SharePoint group to whom the email is to be sent ?
    Thanks for your reply in advance.

    Hi Manish,
    If you would like to specify user in To or CC box dynamically, you could choose
    Workflow lookup for a user… when populated the select users box. And there you could select
    workflow variables and parameters, then specify the variables per your requirement.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to send workflow variable to another List

    Hi,
    I have created Workflow Variable, from that variable I need to get the information from another list. Could you pls share u r Knowledge.
    Regards
    Tharak

    If you want to set a field in another list item, you would run the update item command, select the field you want to change and then select your workflow variable.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Workflows: How to set a workflow variable that is the difference in hours between now and a created date

    I'm trying to create a variable that contains the number of hours between the item created date and Now.  When i use TODAY, it seems to set the time at 12:00 rather than the time now - so that throws the hours off.  Any ideas?
    ajw

    Hi ajw,
    According to your description, my understanding is that you want to calculate the hours between the item created date and now.
    It seems to be not an OOB way to implement your requirement, to get the current time, you need to create a custom workflow activity for SharePoint 2010 workflow. About creating custom workflow activity, you can refer to the links below:
    http://msdn.microsoft.com/en-us/library/hh872790(v=office.14).aspx
    http://blogs-sharepoint-ashutoshmisra.blogspot.in/2013/02/create-custom-workflow-action-for.html
    Or, you can use a third party solution to achieve your requriement.
    Here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/e93ea37a-df09-4cbf-a58d-5d4def3d3d42/how-to-compare-time-in-sharepoint-designer-2010sp-2010-workflow?forum=sharepointgeneralprevious
    http://blog-sharepoint.blogspot.in/2009/03/get-current-time-in-sharepoint-designer.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Take a workflow variable and copy it to the user's clipboard

    I'm looking for the means to have a workflow take a variable and copy it to the user's clipboard. Is this possible?
    Cheers,
    Mark
    SharePoint 2013 Online
    Learning SharePoint

    Hi Mark,
    From your description, you have used workflow to copy the URL into a column.
    Then I recommend to use JSLINK to add a button to the list view and copy the URL from the column to the clipboard when clicking the button.
    Here is the code for the js file and please use it in Internet Explorer(the code only works in IE):
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'URLColumn': { 'View' : CopyButton }//change the column to the internal name of the column which you copy the URL to.
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    function CopyButton(ctx){
    var value =ctx.CurrentItem["URLColumn"]
    var html="";
    if(value!="")
    {var html= "<div><span id='copytext'>"+value+"</span><button type='button' onclick='copy();'>Copy</button></div>";
    return html;
    function copy(ctx){
    if (window.clipboardData && clipboardData.setData)
    var s=document.getElementById("copytext").innerText;
    clipboardData.setData("Text", s);
    After writing the js file, you need to upload the file to SharePoint and then refer to it in the list view web part.
    http://www.learningsharepoint.com/2012/08/03/sharepoint-2013-using-js-link-to-add-javascript-to-listviewdataview-webpart/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Send email to workflow variable

    I have an infopath form that captures an email address.  The email address is not on the domain.  A workflow captures the email address as a variable and then sends an email to the
    variable.  It works if I use my email address, which is on the domain, but not if the email address isn’t. How do I get it to send to the variable? Thanks!

    Hi,
    you will need to create the workflow as 2010 workflow instead 2013.
    or from 2013 workflow initiate another 2010 workflow that send the emails
    check those artilce
    http://www.stefanfeenstra.nl/office-365/unable-send-emails-external-users-sharepoint-online-2013-experience/
    http://blogs.technet.com/b/rajbugga/archive/2013/10/15/sharepoint-2013-unable-to-send-emails-to-external-email-addresses-sharepoint-2013-workflows.aspx
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for