Skip to main content
Known Participant
Jan 24, 2023 2:44 PM UTC
Question

How to compare value from recordtype?

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
    Jan 24, 2023 3:11 PM UTC

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

    Known Participant
    Jan 24, 2023 5:39 PM UTC

    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
    Jan 24, 2023 6:41 PM UTC

    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.