Update form field with catalog item variable input - Flow Designer

depa
Tera Contributor

Hi everyone,

I try to update the short description with the variable input (variable name is reason) from the req item via flow.

I added a scripted part for the short_description field on the case form, here is my code:

var shortDesc = current.short_description + '\n-\n' + request.sc_req_item.variables.reason;
return shortDesc;

As result i get the "fd-scripted" in the case form short description.

Where is my error? Thanks for help.

1 ACCEPTED SOLUTION

Andrew Albury-D
Mega Guru

Hi Depa,

You don't even need to use script to accomplish this! Here's an example:

find_real_file.png

 

You can use the "Update Record" step, and drag in the existing Short Description, and then add the Variable from the "Get Variables" step to the same field!

Hope that's helped,

Andrew

View solution in original post

1 REPLY 1

Andrew Albury-D
Mega Guru

Hi Depa,

You don't even need to use script to accomplish this! Here's an example:

find_real_file.png

 

You can use the "Update Record" step, and drag in the existing Short Description, and then add the Variable from the "Get Variables" step to the same field!

Hope that's helped,

Andrew