how to fetch the existing incident record in UI builder input fields and update the existing record
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I had a requirement to fetch the existing incident record in UI builder input fields and update the existing record
How to make the submit button work to update the record.I created this UI builder from guidance for playbook
Anyone please help me on this
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
46m ago
1. Ensure the Form Component Is Bound to the Incident Record
- In UI Builder, open your page variant.
- Select the Form component.
- Make sure it is bound to the Incident table and a specific record via sys_id.
2. Add a Button Component
- In the Content Tree, navigate to where you want the button (e.g., Action Bar).
- Click Add Component → Button.
- Label it as Submit or Update.
3. Create a Client State Parameter (Optional)
If you want to store temporary values before updating:
- Go to Client State Parameters.
- Add a parameter like description or short_description.
4. Configure the Button’s Event Handler
- Select the Button → go to Events tab.
- Click Add Handler.
- Choose [Record] Update Record as the handler.
Configure the Handler:
- Table: incident
- Record sys_id: Bind this to the form’s record sys_id (e.g., context.record.sys_id)
- Fields to update: Bind each field (e.g., description, short_description) to either:
- Form input fields
- Client state parameters
You can use the Bind Data icon to link fields to form values or client states.
5. Save and Test
- Click Preview → Open URL Path.
- Select an existing incident record.
- Modify the fields and click Submit.
- Confirm the record is updated in the backend.
Please mark the answer as correct , if this is helpful .
Thanks,
Rithika.ch