How to update multiple records in UI Builder

vtred
Tera Contributor

Hi, I am using UI Builder and I have two components List and Button

When user selects multiple records from the list as an Input and click the button - I would like to update those selected records with a value in the backend.

- I am able to get the sysId's of selected records in an array format: Example --> ['sys_id_1', 'sys_id_2', 'sys_id_3']

- I would like to use the "update multiple records" data component but not sure how I could send the payload to update the multiple records.

 

6 REPLIES 6

Marc Mouries
ServiceNow Employee
ServiceNow Employee

Instead of using a button, you can create a custom list action similar to the one out of the box for bulk assignments ( check the action "Assign to me")

Check out the page: Create custom list operations in a workspace

 

find_real_file.png

Hi Marc, thanks for responding

here is what I am trying to achieve:

I have a custom model which has a "text area" and "list" components - i would like to update the text area component on one table and list components on a different table when i hit the "submit" button

I figured out how to update the text area and I am unable to update the multiple records selected from the list in the backend.

Marc Mouries
ServiceNow Employee
ServiceNow Employee

@vtred  your screenshot did not come through