Macro rules

merav tg asked on April 11, 2016 10:17

Hey,

I'm new with Macro rules.

I want to create a condition in the Macro rules that ask if today's date equal to the last modified date of the order + 7 days Meaning is today's date is a week after the last modified date of the order..

How do i write the + 7 days in K#? {_is}CurrentDateTime = Contact.ContactGlobalContact.Orders.LastItem.OrderLastModified + 7 days

thank you

Recent Answers


Petar Kozjak answered on April 11, 2016 11:22 (last edited on December 10, 2019 02:30)

Hi,

this code will return you correct days + 7: {% OnlineMarketingContext.CurrentContact.Orders.LastItem.OrderLastModified.AddDays(7) |(identity)GlobalAdministrator%}

4 votesVote for this answer Mark as a Correct answer

merav tg answered on April 11, 2016 16:37

Thank you

0 votesVote for this answer Mark as a Correct answer

Petar Kozjak answered on April 12, 2016 09:16

No problem just mark answer as correct so it is easier for other... do that on other questions also.. :)

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.