The Zurich release has arrived! Interested in new features and functionalities? Click here for more

how to fetch the existing incident record in UI builder input fields and update the existing record

Sangeetha8
Tera Contributor

I had a requirement to fetch the existing incident record in UI builder input fields and update the existing record 

Sangeetha8_0-1758283500100.png

 

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

Anand2799
Giga Guru

Hi @Sangeetha8 ,

 

You can use the OOB form component to show/edit/update record details

ChallaR
Tera Contributor

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