cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Total a SharePoint Column to include in an email sent by Power Automate

I've built a SharePoint calendar that I'm using to track employee vacation time. The employee logs into a PowerApp, enters their information (including the amount of hours they are requesting off) and clicks a submit button. When the submit button is clicked a flow is triggered which generates a "Send an Email with options" to obtain the manager's approval.

 

What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. The formula will need to look at 3 columns.

  • Employee Name is the same as the employee requesting the time off
  • Start Date = In current year
  • Status = Approved

The return value should be the sum of the "Total Hours Used" column. 

 

The idea is that the email that is sent to the manager should tell the manager how much time the employee has been approved to take off so far this year.

 

How can I accomplish that?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Total a SharePoint Column to include in an email sent by Power Automate


@Juliet wrote:

What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. The formula will need to look at 3 columns.

  • Employee Name is the same as the employee requesting the time off
  • Start Date = In current year
  • Status = Approved

The return value should be the sum of the "Total Hours Used" column. 


Why not just use the SharePoint list to calculate the value? Create a new Calculated Column like "Sum of Hours."

Recommended Reading

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps 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!

 

View solution in original post

4 REPLIES 4
Highlighted
Super User II
Super User II

Re: Total a SharePoint Column to include in an email sent by Power Automate


@Juliet wrote:

What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. The formula will need to look at 3 columns.

  • Employee Name is the same as the employee requesting the time off
  • Start Date = In current year
  • Status = Approved

The return value should be the sum of the "Total Hours Used" column. 


Why not just use the SharePoint list to calculate the value? Create a new Calculated Column like "Sum of Hours."

Recommended Reading

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps 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!

 

View solution in original post

Highlighted
Community Support
Community Support

Re: Total a SharePoint Column to include in an email sent by Power Automate

Hi @Juliet ,

 

Have you take a try to create the flow?

What is the problem when you create the flow?

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Frequent Visitor

Re: Total a SharePoint Column to include in an email sent by Power Automate

Hi @v-alzhan-msft ,

 

I did put in a "Get Items" action into my current flow, however, I've not had any luck with getting the syntax's down or figuring out how the output worked.

Highlighted
Community Support
Community Support

Re: Total a SharePoint Column to include in an email sent by Power Automate

Hi @Juliet ,

 

Could you please share a screenshot of the configuration of your flow?

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (8,702)