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 / Powerapps Galleryname ...
Power Apps
Answered

Powerapps Galleryname save as a Variable?

(0) ShareShare
ReportReport
Posted on by 7

Hi Powerapps experts,

 

I'm a Powerapps newcomer.

I hope you can help me.

For example: The gallery from screen 1 have the name " GallerySägerei " 

How can i save the name of the current Gallery as a variable?

 

Set(varText; ???????? .text)

 

and how can I use the variable?

 

This is running:       Patch(Plankarten;GallerySägerei.Selected;

Thats the riddle :    Patch(Plankarten;??????????????.Selected;

 

Many Thanks

Wolfgang

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Powerplan2020 ,

    Quite simply you cannot dynamically refer to the name of any form, data source, control or screen.

    If there are only a few, you can "hard code" (if a, gallerya, b, galleryb . . . ), but not any other way.

     

     

    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.

  • Powerplan2020 Profile Picture
    7 on at

    @WarrenBelz,

     

    thanks for your quick respone. 

    Now I use the "hard code" a screen with 11 gallerys und 11 other screens to patch the differnt gallerys. But the app is a little bit slow.

    Is ist possible only a adress for example "Gallersägerei"  save as a variable?  

     

  • WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Powerplan2020 ,

    What sort of address (email address?) - if so yes you can save text values as variables.

     

    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.

  • Powerplan2020 Profile Picture
    7 on at

    @WarrenBelz,

    not for email, for  controls (gallerys..) 
    I tried it, but only text numbers worked. 
       Patch(Plankarten;'variable call'.

    Mybe you have a example for me. 

  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    @Powerplan2020 ,

    Sorry I am a little confused, you cannot refer to galleries or controls with Variables as mentioned in my initial post.

    The Patch syntax also has to contain the correct structure although you can refer to a matching Item with a Variable - example

    Patch(
     YourListName,
     {ListFieldName:Variable}, //matching record fields
     {ListFieldName:Variable} //patched record field
    )

     

    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.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard