I am testing this rule by trying to update my record type. however for some reason it is returning a an integer that is the value that I am trying to update. Any help is apricated it
a!localVariables( local!data:a!recordData( recordType: 'recordType!{ccd6b9b1-562c-469f-b3e9-5c14e5166ace}FAM Limited Partnership', filters: a!queryFilter( field: 'recordType!{ccd6b9b1-562c-469f-b3e9-5c14e5166ace}FAM Limited Partnership.fields.{20c3732a-c9e3-4d09-8ece-06beb9f53d90}lpID', operator: "in", value:{118692,101081} ) ), a!update( data: local!data, index: 'recordType!{ccd6b9b1-562c-469f-b3e9-5c14e5166ace}FAM Limited Partnership.fields.{ede49a0e-54ac-4093-ad01-60fb29d13449}agentID', value: 123 ) )
Discussion posts and replies are publicly visible
recordData is for display visual information in a interface. You are querying data so you need a!queryRecordType() Function - Appian 25.3
Use a!queryRecordType() to query data for logic and processing, and a!recordData() mainly for displaying data in interfaces.This distinction is key for performance and proper data handling. Also, a!update() only changes memory, doesn't save to database.