- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 01:31 PM
Dear Experts,
Is there a way I can add Variable Text to the description of the SCtask?
For example:
SCTASK description should display comments variable field if a customer writes Blue, then the description field will show Blue +
AS a result, it Task description should look like this
Thank YOU,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 08:27 AM
I fixed it by adding this to the workflow..
task.short_description = "current.variables.NAME"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 01:38 PM
Hello,
You can do this in workflow or flow by evaluating the value of the relevant variable field and using something like (this is a workflow catalog task activity advanced script example):
if (current.variables.comment_field.toString().toLowerCase().indexOf("blue") > -1) {
task.short_description = current.variables.comment_field.toString();
}
You can adjust things from here, but this should give you an example.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 01:46 PM
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 08:42 AM
Hello,
I see you marked your own reply as Correct.
If you're saying you fixed your issue by that simple change...that alone doesn't look to see if the current.variables.NAME has "Blue" in it.
I felt I guided you Correctly with my reply above.
If you used my method above to help narrow it down and populate the task short description with the current.variables.NAME...please mark my reply as Correct.
Again, your reply that you've marked as Correct, wouldn't work with the quotes around the current.variables.NAME either, in that literal format.
Thank you!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 08:27 AM
I fixed it by adding this to the workflow..
task.short_description = "current.variables.NAME"