Comparing Two field value | Community
Skip to main content
Harish_Gupta6
Level 6
February 21, 2019
Solved

Comparing Two field value

  • February 21, 2019
  • 1 reply
  • 3761 views

Suppose we have two String field

@josh

Field A contains 1, 2, 3, 4, 5

Field B contains 2

How to execute the following:

If Field A contains Field B then

Skip

Else

Field A = Field A + Field B

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Thanks Dan and Sanford. Is there any solution to achieve this use case in Marketo.


You must use a webhook to do the comparison.

1 reply

Dan_Stevens_
Level 10
February 21, 2019

I’m not Josh, so take this for what it’s worth. Field A is essentially a “history” field. So all you need is a conditional CDV flow step that says:

if Field A not contains {{Field B}}

Field A value = {{Field A}}, {{Field B}}

else

do nothing.

SanfordWhiteman
Level 10
February 21, 2019

Except you can't compare to a token by its token name, ​only by value.

Dan_Stevens_
Level 10
February 21, 2019

Of course. I knew I should have build this out using an actual flow. The "choices" act as mini smart lists - and as we all know, you can't use tokens in smart lists. Good catch, Sandy.