LookupOrder - Can I have 2 scenarios with the same EntityID?

Status
Not open for further replies.

greychain

Gold Partner
Advanced Certified
Joined
Jul 13, 2018
Messages
779
Reaction score
122
I need to search for a number in this order Leads, Customer, Contact. In the contact information there may be 2 numbers to search but I'm only able to search for one number at a time.

Can I have 2 scenarios with the same enityID or do they need to be unique?
 
Yes, you can have 2 lookup scenarios with the same EntityId attribute. This is how the ordering logic works:
1) The CRM engine gets all the scenarios with an empty Id, in the order they are specified in the template.
2) It re-orders the scenarios considering the EntityOrder attribute. This way, for example a scenario that was originally the last in the XML, could be considered the first.
3) If you have 2 scenarios with the same EntityId, the original order in the XML template will be respected.
 
@edossantos

Thanks for that.

I assume it goes Customers / Leads / Contacts / Contacts / Suppliers
Could you explain this. I have 5 scenarios. What would the Default be?

2021/12/16 15:14:21.493|4325|0028|Trac|Obtaining scenario entity order for entity 'Contacts'
2021/12/16 15:14:21.493|4325|0028|Trac|Obtained scenario entity order '2' for entity 'Contacts'
2021/12/16 15:14:21.493|4325|0028|Trac|Obtaining scenario entity order for entity 'Leads'
2021/12/16 15:14:21.493|4325|0028|Trac|Obtained scenario entity order '1' for entity 'Leads'
2021/12/16 15:14:21.493|4325|0028|Trac|Obtaining scenario entity order for entity 'Customers'
2021/12/16 15:14:21.494|4325|0028|Trac|Obtained scenario entity order '0' for entity 'Customers'
2021/12/16 15:14:21.494|4325|0028|Trac|Obtaining scenario entity order for entity 'Suppliers'
2021/12/16 15:14:21.494|4325|0028|Trac|Obtained scenario entity order '3' for entity 'Suppliers'
2021/12/16 15:14:21.494|4325|0028|Trac|Obtaining scenario entity order for entity 'Contacts'
2021/12/16 15:14:21.494|4325|0028|Trac|Obtained scenario entity order '2' for entity 'Contacts'
2021/12/16 15:14:21.494|4325|0028|Verb|Processing scenario 'Default'.
 
Default means without Id. All the contact lookup scenarios are like this.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,473
Latest member
NathanMitchell