cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pendulumzqly
New Member

Date Calculator Error: "The date and time string must be in ISO 8601 format." .

Dear all,

 

I have create da Recurrence flow that will check the payment date at 8:00 AM every day and send email to remind the user to complete the upcoming orders before 7 days.

 

Pendulumzqly_2-1655110533059.png

 

 

The condition is : Current Time "is less than or equal to"  addDays('paymentdate',-7)

 

The Data Type of colum "paymentdate“ in Dataverse is : "Data only" and time zone Adjustment (UTC +8)

Pendulumzqly_3-1655110857541.png

 

However, we are facing the error "The date and time string must be in ISO 8601 format." after it was triggered.

 

I wonder if there should be a uniform format between calculated PaymentDate and Current Time... 

Or maybe there's something wrong with the calculation format...

 

I'd really appreciate it if you could assist..😊

 

 

 

Best Regards,

Markus

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @Pendulumzqly,

Please modify your formula as below:

 

formatDateTime(body('Current_time'),'MM-dd-yyyy')

addDays(items('Apply_to_each')?['crba2_PaymentDate'],-7,'MM-dd-yyyy')

 

Snipaste_2022-06-16_10-07-06.png

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @Pendulumzqly,

Please modify your formula as below:

 

formatDateTime(body('Current_time'),'MM-dd-yyyy')

addDays(items('Apply_to_each')?['crba2_PaymentDate'],-7,'MM-dd-yyyy')

 

Snipaste_2022-06-16_10-07-06.png

Best Regards,
Qi

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,099)