- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 07:00 AM
Greetings developer community,
I am working on a flow in Flow Designer, and I have a need to populate a "Fields" type action input using a script. Does anyone know how the return value should be formatted for an input of this type? I am unable to find anything on this in the ServiceNow documentation or community.
I've tried a JSON containing key/value pairs, but this doesn't appear to be working. I appreciate any assistance on this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 07:29 AM
So I was able to solve this. By looking at the action script, at least in my case it looks like this type of input is formatted like an encoded query string, like this:
Name=SomeName^Type=SomeType^Value=SomeValue
So in my scripted input, I formatted the return value in this way and it began working as expected. Hope this helps someone in the future!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 07:29 AM
So I was able to solve this. By looking at the action script, at least in my case it looks like this type of input is formatted like an encoded query string, like this:
Name=SomeName^Type=SomeType^Value=SomeValue
So in my scripted input, I formatted the return value in this way and it began working as expected. Hope this helps someone in the future!