Flow - Update Record Step - Parse Response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 02:21 PM
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 05:01 PM - edited 11-21-2023 05:06 PM
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 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 10:09 AM
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