Expand my Community achievements bar.

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"/>