Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom modifications in delivery Input form

ramprakasht3196
Level 3
Level 3

Hi all,

 When creating a new delivery template below fields needs to be filled in delivery properties general tab.

 

ramprakasht3196_0-1598860988236.png

Here I need to test the condition if campaign is valid to date is less than or equal to today, Then the campaign is valid to date should save 30 days prior to current date while save the delivery template.

 

My question is,

1. how to check the campaign is valid to date is less than or equal to today?

2. If  campaign is valid to date is less than or equal to today, how to set campaign is valid to date is prior to current date?

3. In which Input form above changes need to be done?

 

Thanks in Advance.

 

Best Regards,

Ram.

1 Accepted Solution
Milan_Vucetic
Correct answer by
Community Advisor
Community Advisor

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

View solution in original post

3 Replies
Milan_Vucetic
Correct answer by
Community Advisor
Community Advisor

Hi @ramprakasht3196

you should edit nms:delivery and nms:newDelivery forms.

  • lower or equal to - @your_date_field <= GetDate()
  • equalt to or grater - @your_date_field >GetDate()

Regards,
Milan

View solution in original post

ramprakasht3196
Level 3
Level 3

Hi,

Thanks for your response. equalt to or grater - @your_date_field >GetDate() is working fine.

Now I need to set date as currentdate+ 30 days.

I used below code. will it works?

 

<set expr="GetDate()+30" xpath="@campaignValidityDateTo"/>

 

Thanks,

Ram.

Milan_Vucetic
Community Advisor
Community Advisor

Hi @ramprakasht3196, please test it.
If not, try with AddDays(getDate(), 30)

Regards,

Milan