Expand my Community achievements bar.

Adobe Campaign User Groups are live now. Join our Adobe Campaign User Groups and connect with your local leaders!
SOLVED

Add conditional expressions in Data Schema

Avatar

Level 7

Is there any way to add a conditional expression to an Campaign Classic data schema?
For example: 
<attribute expr="[operation/@end]" label="Max Date" name="maxDate"
type="date"/>


To check if Operation/@end is later than today's date, and depending on it, set one value or another 

 

Thank you in advance!!

@_Manoj_Kumar_ @ParthaSarathy @Parvesh_Parmar @DavidKangni

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @CampaignerForLife ,

you can try below

<attribute expr="Iif([operation/@end] &lt; GetDate(),'Campaign End date has crossed' ,'' )" label="Campaign end date check" name="campaignEndDateCheck" type="string"/>

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @CampaignerForLife ,

you can try below

<attribute expr="Iif([operation/@end] &lt; GetDate(),'Campaign End date has crossed' ,'' )" label="Campaign end date check" name="campaignEndDateCheck" type="string"/>