Check if the condition is true between two schemas | Community
Skip to main content
Level 5
December 14, 2023
Solved

Check if the condition is true between two schemas

  • December 14, 2023
  • 1 reply
  • 563 views

Hi everyone, 

 

I have two schemas, feature_cart & feature_purchase and it has a common column name called feature_name. How can i check for a condition like 

 

if feature_name(feature_cart) == feature_name(feature_purchase), then exclude the recipient else send the recipient to further activities. 

 

Thank you for your help. 

 

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 ParthaSarathy

Hi @rvnth ,

Create a Workflow as below,

Query1: Fetch all recipients from  feature_cart schema.

In additional data, add feature_name attribute and give alias as @featureName

Query2: Fetch all recipients from  feature_purchase schema.

In additional data, add feature_name attribute and give alias as @featureName

(Basically, alias name should be same for both Schema's Query)

 

Intersection:

Reconciliation:  "A selection of column"

Primary set: select your primary schema

Columns used for the join: Select the alias column, @featureName

And enable 'Generate complement'

 

Connect the 'Result' transition of intersection with End activity and 'Complement' transition to rest of your activities in workflow.

Now when you run the workflow, common records with same feature name will go to end, and other records you can process in workflow.

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
December 15, 2023

Hi @rvnth ,

Create a Workflow as below,

Query1: Fetch all recipients from  feature_cart schema.

In additional data, add feature_name attribute and give alias as @featureName

Query2: Fetch all recipients from  feature_purchase schema.

In additional data, add feature_name attribute and give alias as @featureName

(Basically, alias name should be same for both Schema's Query)

 

Intersection:

Reconciliation:  "A selection of column"

Primary set: select your primary schema

Columns used for the join: Select the alias column, @featureName

And enable 'Generate complement'

 

Connect the 'Result' transition of intersection with End activity and 'Complement' transition to rest of your activities in workflow.

Now when you run the workflow, common records with same feature name will go to end, and other records you can process in workflow.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups