Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

connect to lists within a sharepoint appweb

(0) ShareShare
ReportReport
Posted on by 652

Hi

 

Trying to get a connection to lists in an appweb within a  sharepoint hosted app and I get the follwoing error when I enter in the url setting up a sharepoint connection

 

Could not retrieve values. {"error_description":"Exception of type 'Microsoft.IdentityModel.Tokens.AudienceUriValidationFailedException' was thrown."} 

 

I have no issue connecting to lists in the host web ( a regular team site)  of the SP hosted app

 

I have tried to manually create a connection in the Manage->Connection under the powerapps site with no luck.  Looks like an authentication issue within the appweb. 

 

 Thinking the issue is because the host web uses AAD auth and SP hosted apps use ACS.

 

This post may provide the necessary code bits if we have to create a custom connector for appwebs...

 

http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/

 

does anyone have any insights on this?

 

 

Thx!

 

Categories:
  • rekenliu Profile Picture
    on at
    Re: connect to lists within a sharepoint appweb

    Based on my test, lists created within a SharePoint Hosted App(now named SharePoint Add-in) cannot be selected in PowerApps. Manually enter the URL encountered the same error as you saw. Basically the SharePoint hosted add-in URL format looks like https://yourdomain-8efd32da51497a.sharepoint.com/. Please notice that this is a different domain from your SharePoint sites, so the token generated in PowerApps may not be used for this domain. SharePoint iteself uses the cross domain library(CDL) to deal with the cross domain authentication issue.

    It's not difficult to understand that the provider hosted SharePoint add-ins can also not work with PowerApps, because it is totally a separate web app, and use ACS as a trust broker with SharePoint. 

     

    Thanks,
    Reken Liu 

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics