Skip to main content
July 1, 2025
Question

How to compare entered input emailaddresses and the api emailaddresses

  • July 1, 2025
  • 15 replies
  • 0 views

Requirement is  I will be entering emailaddresses on UI and it will be passed to the integration and the integration will return the emailAddresses with GUIDs  . If any emailaddress is missing from the response which we entered then it must show that emailaddress on UI. Suppose I have passed test@test.com and test2@test.com and In repsonsed I get only GUID of only one emailaddress then it has to show the 2nd emailaddress on the UI as invalid error . How Can I achieve it







    15 replies

    mikes0011
    Brainy
    July 1, 2025

    a!forEach(
      pv!jsonPv,
      if(
        contains(pv!emailPv, fv!item.emailAddress),
        {},
        "This one is invalid: " & fv!item.emailAddress
      )
    )

    sabat0002Author
    July 8, 2025

    [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05] It is filtering correct emailaddress instead id incorrect emails .In API response i will get GUIDs of correct emailaddress . I need to show the one's without GUIDs on UI

    mikes0011
    Brainy
    July 8, 2025

    Then you can replace the code in line 4 to check for any condition you need.  I'm not exactly sure what you're saying you need, without some more detailed context and/or example outputs and logic, but it should be pretty simple to check each return line item for any condition you want and filter what you need it to.

    venkatrea696188
    July 2, 2025

    Seems like integration type is "get". If Yes, i don't think you need extra process instance. you can call the integration in your interface and you can do the similar calculation as Mike mentioned above to search the output.