Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

Registration error in adding Flow to Powerapps

(0) ShareShare
ReportReport
Posted on by 2

Hi!

 

i'm having problems with flow registration from powerapps studio.

 

I got an app (that used to work fine since last week) wich use flow to execute a very simple sp on my sql database.

 

I was having a test session on Tuesday and i ran into this:

 

1.png

 


I've tried to understand something more and the chrome console say as follow:

2.png

  1. code: "InvalidAuthenticationTokenAudience"
  2. message: "The access token was obtained for recipients or an incorrect 'https://service.powerapps.com/' resource. It should exactly match one of the allowed recipients 'https://management.core.windows.net/','https://management.core.windows.net','https://management.azure.com/', 'https://management.azure.com'." (transalted from Italian)

 

Thank you so much in advance for your help!

 

 

  • roryl Profile Picture
    on at
    Re: Registration error in adding Flow to Powerapps

     

    Hi GabrieleS1907,

     

    Thank you for your reply and the information. We would like to work with you to collect some additional diagnostics for the issue. If you walk through the process at the following link to create a ticket, we’d be happy to work with you to resolve the problem: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Thank you,

    Rory

  • GabrieleS1907 Profile Picture
    2 on at
    Re: Registration error in adding Flow to Powerapps

    Hi!

     

    I've already tried to check from the flow page and everything work perfectly.

     

    I've also tried to create a new app with new flow and adding it to a button but still the same registration error...

     

    this is my autogenerated json:

     

    {
     "inputs": {
     "host": {
     "connection": {
     "name": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sql']['connectionId']"
     }
     },
     "method": "post",
     "body": {},
     "path": "/v2/datasets/@{encodeURIComponent(encodeURIComponent('default'))},@{encodeURIComponent(encodeURIComponent('default'))}/procedures/@{encodeURIComponent(encodeURIComponent('[dbo].[UpdatesStatoContattoLO]'))}",
     "authentication": {
     "type": "Raw",
     "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
     }
     },
     "metadata": {
     "flowSystemMetadata": {
     "swaggerOperationId": "ExecuteProcedure_V2"
     }
     }
    }

     

     

    Sorry but i'm not able to debug json code, thank you in advance for your help!

  • roryl Profile Picture
    on at
    Re: Registration error in adding Flow to Powerapps

     

    Hi GabrieleS1907

     

    Thank you for your post to the community. Could you browse to the Flow page and see if the Flow is available here? After doing this, do you still encounter the issue in Power Apps studio? If you try to run the Flow manually from the Flow page, does it work?

     

    I was also able to locate a similar issue reported to communities earlier where the JSON schema was not applied. Did your schema recently change at all? If so, could you review this thread and see if this is similar to your issue? https://powerusers.microsoft.com/t5/Building-Power-Apps/Error-on-adding-a-flow-run-SQL-query-to-powerapps/m-p/119226#M42206

     

    I hope this helps.

     

    Thank you,

    Rory

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

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!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics