query doubt | Community
Skip to main content
November 3, 2023
Solved

query doubt

  • November 3, 2023
  • 2 replies
  • 1786 views

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.
Best answer by Mohan_Dugganab

@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}

2 replies

SatheeskannaK
Community Advisor
Community Advisor
November 3, 2023
November 3, 2023

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

SatheeskannaK
Community Advisor
Community Advisor
November 6, 2023

@mysteriousman , Check this function if that works.

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

Thanks, Sathees
Sukrity_Wadhwa
Community Manager
Community Manager
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!

Sukrity Wadhwa
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)

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe 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}