- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 09:23 AM
I have an RITM form that I need to pass values on to the tasks that are created with in a workflow. I need to pass the Business Unit field from the RITM to the Business Unit field on the created Task. I've tried numerous different ways and none have worked...any help is appreciated.
I also have the same values on the Request (Business Unit) that I could use to pass to the created Task within a workflow. I'm pretty new to this so I would again appreciate any help or advice. Thank you!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 07:18 AM
Use this in the advanced script and see if it works
task.short_description = "Forward Desk Phone - " + " " + current.variables.u_ucmt_who.getDisplayValue() + " " + "-" + " " + current.variables.u_ucmt_date.getDisplayValue();
if (task.u_business_unit == '') {
task.u_business_unit = current.u_ucm_bu;
}
if (task.u_location == '') {
task.u_location = current.u_ucm_loc;
}
task.u_itp_reqfor = current.request.requested_for;
task.u_ucm_due_date = current.due_date;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 07:18 AM
Use this in the advanced script and see if it works
task.short_description = "Forward Desk Phone - " + " " + current.variables.u_ucmt_who.getDisplayValue() + " " + "-" + " " + current.variables.u_ucmt_date.getDisplayValue();
if (task.u_business_unit == '') {
task.u_business_unit = current.u_ucm_bu;
}
if (task.u_location == '') {
task.u_location = current.u_ucm_loc;
}
task.u_itp_reqfor = current.request.requested_for;
task.u_ucm_due_date = current.due_date;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 07:52 AM
Abhinay,
I have replaced advanced script with what you have above for all tasks in the workflow. So all the create task workflows have the exact same script except the short description. The one odd thing is some of them still do not have the Business Unit populating for the Task that are spawning...see image below.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 07:55 AM
Are you sure the scripts for those task are the same? Can you share the script of the task which is not populating the business unit?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 08:02 AM
I believe you are missing something here. The code I gave should work.If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
If you are viewing this from the community inbox you will not see the correct answer button. If so, please review How to Mark Answers Correct From Inbox View.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 07:52 AM
Kevin,
Did you get this working?