API-Ready JSON Generator from Table Record #202
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This custom Flow Designer action converts selected fields from any ServiceNow record into a JSON-formatted string. It’s ideal for API integrations, structured logging, or sharing readable record data with other systems or processes.
The action dynamically extracts field values handling reference, choice, and date/time fields and produces clean, human-readable, API-ready JSON output.
Description:
This Flow Designer Script Action takes a record from any ServiceNow table and converts selected fields into a formatted JSON string. It includes robust error handling and proper formatting for different field types, ensuring the output is clean, reliable, and API-ready.
How it works:
Inputs:
Logic:
Fetches the record and loops through the selected fields:
Skips excluded fields like work_notes and comments
Handles field types intelligently:
Outputs:
Notes: