Generate Record Change Summary #132
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.
🔄 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:
📥 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
changeSummary🧪 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.