- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 03:27 PM
Would anyone know if it is possible to update a field in a record, that was passed to a Flow Designer Action as a reference from a script inside the action?
In an Action, I pass a reference to a requested item record. This record has a field that may need updating.
There is one script step, a Javascript function. The record from Action input is passed to the script via the inputs object.
I can access variables from the passed record directly, accessing variables in the script line inputs.request.whateverField
But would I be able to change the value of inputs.request.whateverField in then save the record somehow?
I started writing the script by doing the usual new Gliderecord('sc_req_item') then get the record via the sys_id and update it, which works ok but for efficiency it might be better to use a record passed rather than retrieving it again.
Thanks
Ron
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 04:18 PM
Got it, as the passed record is a glide record the following worked
inputs.request.whateverField = 'hello world'
inputs.request.update()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2024 04:18 PM
Got it, as the passed record is a glide record the following worked
inputs.request.whateverField = 'hello world'
inputs.request.update()