Skip to main content
January 24, 2023
Question

How to compare value from recordtype?

  • January 24, 2023
  • 3 replies
  • 0 views

Dear All,

Can anyone please tell me how to compare values retrieved from record type with local value. I am using exact function for similarity but that is not working.

    3 replies

    stefanhelzle0001
    Brainy
    January 24, 2023

    Can you share some code snippets? The exact() function does a case sensitive comparison. What kind of data do you want to compare?

    January 24, 2023

    Hi Stefan,

    I am comparing the field value from record type and local value. Given below is the code:

    if(
    exact(recordType!recordName.fields.fieldName,"some value"),
    true(),
    false()
    )

    stefanhelzle0001
    Brainy
    January 24, 2023

    OK. I do not understand the purpose of the if() statement, but what is wrong with this approach? Is this the exact syntax you use? If yes, I suggest to check the documentation for how to reference values in record type data.