Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Flow - Update Record Step - Parse Response

CV1
Tera Contributor

Hello All,

We have a custom flow action where a id is returned from an integration application that needs to be written to worknotes.

The [Parse Response(JSON Parser) >root>record>Id ] is written into worknotes on RITM.

since just ID in work notes is not user friendly, we want to append static text like "This is the Id returned from App xx: " 19998082

 

This requires scripting for field value and looking for help here on how we can do this. I tried the following:


var worknotes = "This is the Id returned from App xx:" + fd_data.parseresponse.root.record.requisitionid;
return worknotes;

 

 

 

 

 

2 REPLIES 2

AnveshKumar M
Tera Sage

Hi @CV1 

 

You should input the action internal name correctly. While in inline editor, just type fd_data. and wait for a moment for the editor suggestions for previous step data.

 

In your case as your parsing the JSON in step 8, it should be something like fd_data._8__actionInternalName.variable.etc.etc.

 

 

You can try something like this,

 

var req_id = fd_data._8__parseresponse.root.record.requisitionid;

return  "This is the Id returned from App xx:" + req_id;

 

Please mark my answer helpful and accept a solution if it helped 👍

Thanks,
Anvesh

Hi @AnveshKumar M ,

I tried above and get : work_notes=This is the Id returned from App xx::undefined when i check the flow execution.

The value in the flow is:

work_notes= var req_id = fd_data.8__parseresponse.root.record.requisitionid;

return  "This is the Id returned from App xx:" + req_id;

 

On the form in work notes it displays : This is the Id returned from App xx: undefined