Best approach for handling SharePoint document uploads and environment switching (sandbox → production) in Code Apps? #271
|
Hi, I’m working on a Custom Code App (client-side) and I’d like to ask for guidance on the best current approach for a specific real-world scenario. Use caseIn my app, users need to:
I also need to support:
So the requirement is:
And ideally:
Current approach I’m consideringOne idea I had was:
Questions
Any guidance, examples, or recommended patterns would be really helpful. Thanks! |
Replies: 1 comment
|
The recommended approach is to use the SharePoint connector rather than placing client credentials or secrets in the browser application. Documentation: |
The recommended approach is to use the SharePoint connector rather than placing client credentials or secrets in the browser application.
Code apps now support SharePoint file operations and environment-variable references for dataset and table bindings. This allows the SharePoint site and library/list to resolve differently in Dev, Test, and Production.
Documentation:
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/sharepoint-operations
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/use-environment-variables
https://learn.microsoft.com/power-apps/developer/code-apps/how-to/alm