Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more 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.