CRM Integration, condition

Status
Not open for further replies.

Simone Rota

Forum User
Joined
May 29, 2018
Messages
181
Reaction score
5
Hi,
is it possible put a condition in CRM integration?

Ex:
If Contact.FirstNale="XXX"
<Variable Name="FirstName" Path="contact.CompanyName">
else
<Variable Name="FirstName" Path="contact.FirstName">


Thanks
Simone Rota
 
You'll want to do this:

XML:
<Variable Name="CompanyName" Path="contact.CompanyName">
  <Filter />
</Variable>
<Variable Name="FirstName" Path="contact.FirstName">
  <Filter />
</Variable>

Then, in the Output section:
XML:
<Output Type="FirstName" Passes="0" Value="[IIf([FirstName]==&quot;&quot;,[CompanyName],[FirstName])]" />

Change the &quot;&quot; (empty text) to whatever to need to compare with. Example: &quot;XXX&quot;.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,894
Members
165,472
Latest member
arneg