Skip to main content
nishthab0002
Participating Frequently
Jun 7, 2026 3:51 AM UTC
Question

Compare

Hi All,

I want to compare the record type and a map that have similar data  , I want to compare if it is same then create a list of that fields name.

Thanks

    2 replies

    stefanhelzle0001
    Brainy
    Jun 7, 2026 7:50 AM UTC

    OK. Did you try to iterate on the fields and compare them? Do you already have something and are stuck?

    shubhama926776
    Brainy
    Jun 7, 2026 1:23 PM UTC

    You should try this and replace the actual ri! with your record value or parameter.

    a!localVariables(
      local!fields: a!keys(ri!mapData),
      reject(
        fn!isnull,
        a!forEach(
          items: local!fields,
          expression: a!localVariables(
            local!recVal: index(ri!recordData, fv!item, null),
            local!mapVal: index(ri!mapData, fv!item, null),
            if(
              and(
                not(a!isNullOrEmpty(local!recVal)),
                tostring(local!recVal) = tostring(local!mapVal)
              ),
              fv!item,
              null
            )
          )
        )
      )
    )

    शुभम्