Skip to main content
Community site session details

Community site session details

Session Id : pP5JKjyAnKWDYu/NzTX60D
Power Apps - Building Power Apps
Unanswered

Using the app id as a a key in a record?

Like (0) ShareShare
ReportReport
Posted on 27 Jul 2021 14:16:19 by 634

I'm building a settings component and I want to be able to reuse the component for other apps(obviously the purpose of a component). However, I want to be able to allow the user to save the settings from this component so the next time they load the app the settings load as well. since this data source could be used to hold settings for multiple apps I'm thinking that the app id might be the right piece of data to use as a key to determine which settings should be loaded into the component when an app loads. Is there a way to get and record this app id? Or is there possibly a better/easier piece of data to use?

Categories:
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on 28 Jul 2021 at 15:31:00
    Re: Using the app id as a a key in a record?

    Then theoretically you would just need to keep track of the AppID and the style in a SP list. Then have the app check that list in OnStart for the theme. You would just do a Lookup on the AppID to your list.

  • Future_Vision Profile Picture
    634 on 27 Jul 2021 at 17:57:22
    Re: Using the app id as a a key in a record?

    @BrianS 

    Thanks. I'm not too concerned about the user info since this component is really only for the administrator/designer. My primary concern is that when the app loads it loads the correct 'theme' for the app. Those values would be retrieved from a data source and that data source would need to have record of which app which styles get applied too.

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on 27 Jul 2021 at 16:16:57
    Re: Using the app id as a a key in a record?

    If you want to automate the process, you would need to build the automation. You would probably need to set up a table in Sharepoint that would hold an ID for the user, an App Identifier and the data you need to capture and retrieve. You would have to set a variable in the OnStart to hold the app identifier - you could use the AppID, but you would need to manually add that to each app you want to have this functionality. Then you would need to capture the User info. That is available either from the User function or the 365 connector. Then you could use that info to populate the Sharepoint list along with the other data you need to capture. 

  • Future_Vision Profile Picture
    634 on 27 Jul 2021 at 16:06:34
    Re: Using the app id as a a key in a record?

    @schuess3 I'm not familiar with those methods. I was simply thinking that the component would leverage a form and the user would save on submit.

  • Future_Vision Profile Picture
    634 on 27 Jul 2021 at 16:05:28
    Re: Using the app id as a a key in a record?

    @BrianS I know you can get the ID from there but how would you retrieve it in the app. It would need to be some type of automated process so the user of the app can just plug n play the component and have it save with the app id.

  • schuess3 Profile Picture
    353 on 27 Jul 2021 at 14:35:00
    Re: Using the app id as a a key in a record?

    If you are planning on using SaveData and LoadData, to cache the settings, I don't believe this is possible as those files are encrypted and not accessible by other apps. In case you were headed that way. 

     

    "The device's built in app sandbox facilities are used to isolate saved data from other apps." -src

     

    matt

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on 27 Jul 2021 at 14:26:26
    Re: Using the app id as a a key in a record?

    The app ID would be a unique identifier, so that should work. If you click the three dots next to the app name in the list of Powerapps you can select "Details' - the app ID is listed there

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete