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 / Dynamic Screen Name - ...
Power Apps
Answered

Dynamic Screen Name - Use Sharepoint List

(0) ShareShare
ReportReport
Posted on by 74

Hi Community,

 

I'm wondering if there is a hack for the following:

  • Have a map between Screen object and some ID (so that I can navigate between screens dinamically) and
  • This map would need to be fed by some Sharepoint List

Example of what I want to avoid:

// This line of code creates a Collection with column "templateid" and screen control object
ClearCollect(screenMapping,{templateid: 1, templatescreen: Model1},{templateid: 2, templatescreen: Model2})

 

I would like to have a Sharepoint list with, lets say, two columns, "templateid" and screen control, replacing the need of having the above hardcoded.

 

Would that be possible?

 

Thanks,

Bernardo

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @bernabasket 

    No, you cannot reference controls indirectly.  They must be defined in the app and cannot be replaced with text references.

     

    To work with this, you can use the Switch (or other) function to produce the "map" between text and control.

    Example:

    Switch(yourTextValue,
     "control1", control1,
     "control2", control2,
     ...etc...
    )

     

    I hope this is helpful for you.

  • bernabasket Profile Picture
    74 on at

    Thanks @RandyHayes

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard