query doubt | Community
Skip to main content
Level 4
November 3, 2023
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
Employee
December 13, 2023

@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

Sukrity_Wadhwa
Employee
November 20, 2023

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
November 20, 2023

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
Mohan_DugganabAccepted solution
Employee
December 13, 2023

@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
SatheeskannaK
Level 1
November 3, 2023
Thanks, Sathees
Level 4
November 3, 2023

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

Translate
SatheeskannaK
Level 1
November 6, 2023

@mysteriousman , Check this function if that works.

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

Translate
Thanks, Sathees