update record in incident table UI BUILDER
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 10:32 AM
someone can explain to me the update record script?
function handler({api, event, helpers, imports}) {
api.data.update_record_1.execute({
table: "incident",
recordId : api.context.props.sysId,
templateFields: '',
useSetDisplayValue: false
});
}
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 11:27 AM
update_record_1 - is the name of your data resource. (Lower left corner, database icon)
api.context.props.sysId - points to a page parameter sysId
This runs a data resource named update_record_1 and checks for an existing record on the incident table for the sysId from the page.