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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Assistance in simplify...
Power Automate
Unanswered

Assistance in simplifying flow

(0) ShareShare
ReportReport
Posted on by

Hi there. Need help to simplify my flow.

General idea is that someone uses a power app from where he selects an O365 calendar and a date range and then these events need to be sent via email.

 

HOW I DO THIS:

 

I get data from a power app. This data's ParseJSON_Content gives something like this:

{
"content": "[{\"CalendarName\":\"Calendar\"},{\"CalendarDateRange\":\"January-2022\"},{\"Attendees\":[],\"Body\":{\"Content\":\"\",\"ContentType\":\"HTML\"},\"BodyPreview\":\"\",\"Categories\":.......

}

 

In the flow I have 3 objects:
-CalendarName 

-CalendarDateRange

-CalendarEvents

 

Then I initiate a few variables:

-JSONbody (array with value the body of the Parse JSON)

-CalendarName, CalendarDateRange, CalendarItems (object)

-CalendarFinalItems (array)

 

Then I get an apply to each with the Jsonbody variable and check if the item in the loop contains CalendarName then I update the related variable with the outputs of the compose and then I compose with input:

variables('CalendarName')['CalendarName']

 

And the condition checks for:

CalendarName

CalendarDateRange

CalendarItems

 

So I get my results just fine but in CalendarItems I have lots of items (its actual O365 calendar events) and I need to get specific properties (Start Datetime, End datetime and subject) per item in this object and use it inside an array or something to be sent via email.

 

It feels that I am doing much work and that this could be done in a better way so any feedback is much appreciated!

 

Screen Shot 2022-02-10 at 14.35.35.png

Categories:
I have the same question (0)
  • pm4698 Profile Picture
    on at

    Any ideas on this one?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard