Difference between different query functions

Certified Lead Developer

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

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Hi  ,

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

Reply
  • 0
    Certified Associate Developer

    Hi  ,

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

Children
No Data