Solved

[Workflows] Is there a way to lookup a customer by different attributes in 1 step?

  • 13 March 2023
  • 1 reply
  • 52 views

Badge
  • Friendly Neighbor
  • 4 replies

 

I have a customer with the same attributes but a dfferent format.

Eg.

Attribute A: third_partyId-id=654987

Attribute B: id=654987

 

Can I build a workflow where I don’t need to create separate branches and conditions for A and B attributes one after another? 

We are solving this with two different steps currently. 1st, search for attribute A. If it does not find anything then it goes for attribute B

 

  • My need is an OR condition within 1 step.
icon

Best answer by csaba 13 March 2023, 13:57

View original

1 reply

Badge
 
Hi There,

Thank you for submitting this question!

The current way you're doing it sounds like the best way within a workflow, as you're guaranteed to get back only 1 option per look-up. Then in the rare case you find two different customers in Kustomer and you need to handle that, you can do so with standard workflow actions and conditions.

It is possible to look up based on both IDs by using the Search Endpoint​ in a REST API workflow action. The caveat here is the response you're parsing is very different and does not have standard attribute accessors the way the workflow actions do.

Best,

Michael ********
Technical Support Engineer

Reply