Is there a way I can add Variable Text to the description of the SCtask?

ND7
Kilo Sage

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 + find_real_file.png

 

AS a result, it Task description should look like thisfind_real_file.png

Thank YOU,

 

 

1 ACCEPTED SOLUTION

ND7
Kilo Sage

I fixed it by adding this to the workflow..

task.short_description = "current.variables.NAME"

View solution in original post

4 REPLIES 4

Allen Andreas
Administrator
Administrator

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!

Thank you

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!

ND7
Kilo Sage

I fixed it by adding this to the workflow..

task.short_description = "current.variables.NAME"