web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Reformat an Azure SQL GET field to an ISO 8601 time format

(0) ShareShare
ReportReport
Posted on by

I am trying to create a flow that periodically looks at an Azure SQL database and checks for a timestamp in a table. If the timestamp is older than 65 seconds it will then send an alert. Below is the flow and then the error message I am getting. I have two fields lastCheck=Date/Time and lastCheckString=String. I keep getting the same error when using either one.

The FlowThe Flow

The ErrorThe Error

I have the same question (0)
  • Christopher S Profile Picture
    on at
    Re: Reformat an Azure SQL GET field to an ISO 8601 time format

    Hi @Anonymous 

     

    As you can see on the image with the error message, the AddSeconds function is expecting a specific format, "lastCheck" has the correct format and "lastCheckString" doesn't, you can compare both and notice that "lastCheckString" is missing the T in the middle and also the milliseconds.

     

    Best Regards

    --

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at
    Re: Reformat an Azure SQL GET field to an ISO 8601 time format

    Thank you @chsanche ,

     

    So, lastCheck is of the type DateTime and that was not working. I would get the error listed in the image below. Some said that you wanted to use type String for the field so I created lastCheckString as a string type. I would think that DateTime would work and format it correctly (ISO 8601) and it looks like it did with the T and the milliseconds. I changed the function to use lastCheck instead and get a similar message.

     

    Error when lastCheck is in the functionError when lastCheck is in the function

     

    I appreciate your assistance with this issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard