Comparing Two field value | Community
Skip to main content
Harish_Gupta6
Level 6
Feb 21, 2019 2:40 PM UTC
Solved

Comparing Two field value

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Feb 22, 2019 1:45 PM UTC

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


You must use a webhook to do the comparison.

5 replies

Dan_Stevens_
Level 10
Feb 21, 2019 4:21 PM UTC

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.

Translate
SanfordWhiteman
Level 10
Feb 21, 2019 8:48 PM UTC

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

Translate
Dan_Stevens_
Level 10
Feb 21, 2019 8:50 PM UTC

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.

Translate