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 Apps / using variables in for...
Power Apps
Answered

using variables in forall - (or an alternative!)

(0) ShareShare
ReportReport
Posted on by 263

Hi,

 

I am trying to modify the milestone app that Microsoft produced. The app creates multiple records in a datasource by using the forall function. I am trying to modify the app so that it creates calendar invites for each record and then patches the EventID of the calendar invite into the datasource so it can be looked up later. I've created the calendar invites no problem the variable I set says it cannot be invoked into the forall function plus I don't think this would work even if it allowed it.

 

MJ84_0-1647515500796.png

 

Further down in the code the app the writes the record see below the calendarID column (At the bottom) is one I have added and where I want to patch the EventID of the calendar invite to... 

 

MJ84_1-1647515938317.png

 

 

 

 

Really struggling with this so if anyone can help I'd really appreciate it!

 

Thanks in advance

 

Categories:
  • Verified answer
    Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @MJ84 

    Yes you cannot use a Set or UpdateContext function to make variables inside a ForAll, but you can with the With function!

    With function in Power Apps - Power Apps | Microsoft Docs

  • MJ84 Profile Picture
    263 on at

    Thank you --- suggestion was just what I needed 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard