Skip to main content
nishthab0002
June 7, 2026
Question

Compare

  • June 7, 2026
  • 2 replies
  • 0 views

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
    June 7, 2026

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

    shubhama926776
    June 7, 2026

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