Skip to main content
Known Participant
March 31, 2025
Question

Difference between different query functions

  • March 31, 2025
  • 3 replies
  • 9 views

What is the main difference between a!queryRecordType, a!queryRecordByIdentifier and a!recordData. When to use a particular one?

    3 replies

    stefanhelzle0001
    Brainy
    March 31, 2025

    Is this a trick question? I mean, the Appian documentation clearly explains the differences.

    varuntejg243705
    Inspiring
    April 1, 2025

    Hi [mention:59a7518e22f94dc9a0626f3f78324811:e9ed411860ed4f2ba0265705b8793d05] ,

    Everything returns the same but differs in very few parameters and used similarly sometimes.

    1. a!queryRecordTyperecordType, fields, filters, pagingInfo, fetchTotalCount, relatedRecordData ) : Executes a query on a given record type and returns the result.
    2. a!queryRecordByIdentifierrecordType, identifier, fields, relatedRecordData ) : Executes a query on a given record identifier and returns the record data.

    3. a!recordDatarecordType, filters, relatedRecordData, fields ) : Used mostly in Read-Only Grids, Charts, or selection components that uses a record type as the source.

    I would specifically suggest you to go through documentation (added links for the functions above)  and usage considerations for each function!

    Hope this helps you!!!

    karumurua531442
    Participating Frequently
    April 1, 2025

    hi [mention:59a7518e22f94dc9a0626f3f78324811:e9ed411860ed4f2ba0265705b8793d05] 
    You can go through these links 
    query record type
    query record by identifier
    record data