Skip to content

Conversation

@shivamvish160
Copy link
Contributor

🔄 Generate Record Change Summary

This Flow Designer action compares two versions of a ServiceNow record and generates a human-readable summary of the changes in specified fields.

🧩 Use Case

Useful in scenarios like:

  • Change Management: Summarize what changed in a Change Request.
  • Incident Management: Track updates to priority, assignment, or description.
  • Auditing: Log what fields were modified between two versions of a record.

📥 Inputs

NameTypeDescriptiontableNameStringName of the table (e.g., incident, change_request)| currentSysId | String | Sys ID of the current version of the record |
| previousSysId | String | Sys ID of the previous version of the record |
| fieldsToCompare | String | Comma-separated list of field names to compare |


📤 Output

Name Type Description
changeSummary String A formatted summary of field-level changes

🧪 Sample Input

{
"tableName": "incident",
"currentSysId": "f3a1b2c3d4e567890123456789abcdef",
"previousSysId": "a1b2c3d4e5f67890123456789abcdef0",
"fieldsToCompare": "priority, assignment_group, short_description, state"
}

📄 Sample Output

Field 'priority' changed from '3 - Moderate' to '2 - High'
Field 'assignment_group' changed from 'Service Desk' to 'Network Support'
Field 'short_description' changed from 'VPN not working' to 'VPN not connecting on Windows 11'

If no changes are detected:
No changes detected in specified fields.

@github-actions
Copy link

github-actions bot commented Oct 9, 2025

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!

@shivamvish160
Copy link
Contributor Author

@Atul-LNG @shreyawani98 @Paulsylo25
Any Feedback, Any updates on this?

@Paulsylo25 Paulsylo25 merged commit 7412d40 into ServiceNowDevProgram:main Oct 9, 2025
@Paulsylo25
Copy link
Contributor

Looks Good to me .

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.

4 participants