Announcements
Hey everyone,
on one screen I have a button. When it is selected, a lot of collections will be created based on SharePoint-lists. I want to select that button and refresh the collections from another screen, more precisely when a form is sucessfully submitted. Do you have any suggestions?
Thanks in advance!
Hello @hguenther ,
You can use the Select() function to select the button from another screen. Here is the official documentation about the function Select function - Power Platform | Microsoft Learn
You can include on the onsuccess property of the form the logic to select the button that will apply the logic you're looking for such as refresh collections, etc.
Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hey @OdinDelToro ,
thanks for the quick reply!To use Select() was also the first thing that came to my mind. But in the documentation it says that Select() is not possible to use across screens. That's why I posted the question in the first place.
Thanks for the clarification, in reality, there is not a simple way to achieve the functionality desired. You can explore other options such as using another control as with buttons you won't be able to achieve that. You can use a combination with a toggle and variable.
Here is a blog from Alexander Schirmer with similar challenge:
Reuse code in Power Apps – across screens! – considerITman
You can also review the answer from iAm_ManCat
Solved: Call code, easy way to reuse code? - Power Platform Community (microsoft.com)
Hi @hguenther,
If you just want to referesh the collection after you successfully submit a form, I think we could just ignore the Select() function.
We could just copy the formula from the Button that you generate the collections from another screen, and then paste it on the OnSuccess property of the form, then, it will refresh the collection directly.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional