Skip to main content
sergiog132707
Participating Frequently
Oct 29, 2025 7:35 PM UTC
Question

why is this return an Integer?

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

Inspiring
Oct 29, 2025 8:55 PM UTC

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

shubhama926776
Brainy
Oct 30, 2025 5:26 AM UTC

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.

शुभम्