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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint List Approv...
Power Automate
Unanswered

SharePoint List Approval Workflow

(0) ShareShare
ReportReport
Posted on by 44
Hello, all--
 
I am relatively inexperienced with Power Automate and coding, so apologize for perhaps some ignorant questions.  I've created a SharePoint approval workflow using the standard "Request approval (everyone must approve" for a selected item", with some slight modifications.  I've run into a couple of items that I'm hoping can be corrected and, if so, could use some help.
  1.  There is a Select Data Operation that creates a table of Approver, Comments, and Response.  I have added Date to this table.  I just approved a request at 10:43 a.m. EST, yet the time that is recorded as a result of the Condition step is 15:43.  Is there a way to change this?  I'm assuming this is a time zone setting.
  2.  I have added an "Apply to each" step at the end to record the responses in a Sign-off Status field in the SharePoint Item.  What I'm noticing is that it only records the last response by an individual.  I would like for this to record every response by an individual.  So, for example, if I reject a request 3 times and then approve the 4th, I would like all 4 to be recorded with responses and date of each.  Is there a way to do this that isn't terribly complicated? 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    I assume your time zone is UTC -05:00 (Eastern Time Zone)?
     
    If that is the case you can use the below expression:
    convertTimeZone('2024-11-18T15:43:30Z', 'UTC', 'Eastern Standard Time')

     
  • KB-20091245-0 Profile Picture
    44 on at
    Thank you, Expiscornovus.  Where would I place this expression?  I assumed I would place it where the Completion Date variable is being populated.
     
    Added, the expression below seems to convert the static date and time included.  I'm hoping to convert the Completion Date variable to UTC -05:00 (Eastern Time Zone)--as well as formatting the date and time.  What should I change '2024-11-18T15:43:30Z' in the formula to?  I tried to swap it out with the Completion date variable thinking that it would convert the captured date and time, but I get a message that the expression is invalid.
     
    The invalid expression now reads convertTimeZone('outputs('Wait_for_an_approval')?[body/completionDate']', 'UTC', Eastern Standard Time').
     
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    Can you remove the single quotes around the completionDate field reference and try again?
    convertTimeZone(outputs('Wait_for_an_approval')?[body/completionDate'], 'UTC', Eastern Standard Time')
     
  • KB-20091245-0 Profile Picture
    44 on at
    Unfortunately, I'm receiving the same error.
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    Sorry, it looks like there was a small typo in the code snippet I shared earlier, my bad 😅. The first single quote before the body was missing.
     
    Try this instead:
    convertTimeZone(outputs('Wait_for_an_approval')?['body/completionDate'], 'UTC', 'Eastern Standard Time')
     
    Test result
     
  • KB-20091245-0 Profile Picture
    44 on at
    This worked perfect; thank you so much for your help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard