Skip to main content
sergiog132707
October 29, 2025
Question

why is this return an Integer?

  • October 29, 2025
  • 2 replies
  • 0 views

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
  )
)

2 replies

October 29, 2025

recordData is for display visual information in a interface. You are querying data so you need a!queryRecordType() Function - Appian 25.3

shubhama926776
October 30, 2025

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.