Skip to content

Conversation

@VaishnaviLathkar98
Copy link
Contributor

This custom Flow Designer action converts selected fields from any ServiceNow record into a JSON-formatted string. It’s perfect for API integrations, logging, or sharing structured record data with external systems.
By dynamically extracting field values including reference fields, choice fields, and date/time fields — it produces human-readable and API-ready JSON in a consistent format.

⚙️ How It Works
Accepts a table name, record sys_id, and list of fields to include.
Automatically fetches field values:
Reference fields → returns the display value
Choice fields → returns the selected choice label
Date/time fields → formatted as ISO-style strings
All other fields → raw value
Converts the collected values into a pretty-printed JSON string.
Returns the JSON string as an output variable, ready for use in subsequent Flow Designer steps or external API calls.

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@rohi-v rohi-v self-assigned this Oct 19, 2025
…finition_2ca7fcef47a43210d5daa3c9316d4328.xml
@rohi-v
Copy link
Contributor

rohi-v commented Oct 19, 2025

Hi @VaishnaviLathkar98

The positive scenarios looks good.
However few negative scenarios are failing.

  • If an invalid sys_id is passed as an input, The action should display a clear message or status code that sys_id is not found or invalid
  • Add error evaluation if step1 fails.
  • Please make a note in description of PR that the worknotes/comments will not return in any value.

@rohi-v
Copy link
Contributor

rohi-v commented Oct 19, 2025

Closing this PR

New PR has been raised #202

@rohi-v rohi-v closed this Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants