Skip to main content
Level 4
Nov 3, 2023 7:33 AM UTC
Solved

query doubt

Can we create a query for submission date - current date = 7 days 
how can we add this quesry in AJO journey condition box 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mohan_Dugganab
Mohan_DugganabAccepted solution
Adobe Employee
Dec 13, 2023 3:52 AM UTC

@mysteriousman 

If the data type of FormSubmissionDate is dateOnly, you can validate using the following expression

 

toDateOnly(toString(nowWithDelta(-7,"days"))) == #{ExperiencePlatform.leadinquiry.experienceevent.at(0)._abc_partner.FormSubmissionDate}

12 replies

SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Nov 3, 2023 1:38 PM UTC
Thanks, Sathees
Level 4
Nov 3, 2023 2:04 PM UTC

@satheeskannak but submission date is not static it will be dynamic 

Translate
SatheeskannaK
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
Nov 6, 2023 1:16 AM UTC

@mysteriousman , Check this function if that works.

toDateOnly(toString(inNextDays(submissiondate,7)))==toDateOnly(toString(now())) 

Translate
Thanks, Sathees
Sukrity_Wadhwa
Level 4
Nov 20, 2023 1:46 PM UTC

Hi @mysteriousman,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!

Translate
Sukrity Wadhwa
Level 4
Nov 20, 2023 4:04 PM UTC

Hi @satheeskannak  

the attribute submission date 

Data Type is Date only can you helps us to form the query for that 

submission date = 7 days 

(Assume that 19-11-2023 i submitted form and send the mail after 7 days  and submission date is day 0  mail should be sent on. 27-11-2023)

Translate
Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
Dec 13, 2023 3:52 AM UTC

@mysteriousman 

If the data type of FormSubmissionDate is dateOnly, you can validate using the following expression

 

toDateOnly(toString(nowWithDelta(-7,"days"))) == #{ExperiencePlatform.leadinquiry.experienceevent.at(0)._abc_partner.FormSubmissionDate}

Translate