Skip to content

Conversation

@shivamvish160
Copy link
Contributor

This PR is raised to provide solution for one of the issue raised in action pack repo
Here is the link of issue: #101

ServiceNow Flow Designer Action: Bulk Upsert Records

Description

This Flow Designer Action performs bulk upsert operations (insert or update) on a specified ServiceNow table using a JSON string input representing an array of record objects. It simplifies data synchronization by allowing developers to process multiple records without writing loops or script steps manually.


Purpose

  • Automate bulk data syncs across tables
  • Avoid manual scripting for insert/update logic
  • Ensure partial failure handling and error logging

Inputs

NameTypeDescriptiontarget_tableStringName of the target table to upsert records intorecord_arrayStringJSON string representing an array of record objects| match_keys | String | Comma-separated list of fields used to match existing records|


Outputs

NameTypeDescriptioninsert_countNumberNumber of records successfully inserted| update_count | Number | Number of records successfully updated |
| error_log | Array | List of error messages for records that failed to process |


Inputs:

{
"target_table": "incident",
"match_keys": "caller_id,short_description",
"record_array": "[{"caller_id":"6816f79cc0a8016401c5a33be04be441","short_description":"Email issue","priority":"2"},{"caller_id":"6816f79cc0a8016401c5a33be04be441","short_description":"VPN not working","priority":"1"}]"
}

Outputs:

{
"insert_count": 1,
"update_count": 1,
"error_log": []
}

@github-actions
Copy link

github-actions bot commented Oct 8, 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

shivamvish160 commented Oct 8, 2025

@snamjosh , @sandeepd26 , @ravichandra1998g
Kindly review and provide your feedbacks please

Copy link

@sandeepd26 sandeepd26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.

@sandeepd26 sandeepd26 merged commit 6605a82 into ServiceNowDevProgram:main Oct 9, 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