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 / 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard