The CreatorCon Call for Content is officially open! Get started here.

update record in incident table UI BUILDER

Fabrizio Joaqui
Mega Guru

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

Michael Fry1
Kilo Patron

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.