The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I am trying to invoke a UDF from a power automate cloud flow.
I have generated/registered an application in entra with the proper permissions indicated in the following documentation: https://learn.microsoft.com/en-us/fabric/data-engineering/user-data-functions/tutorial-invoke-from-p...
Namely, the application has been granted GraphQLApi.Execute.All permissions.
I have tested this with the UDF that I plan to use as well as a simpler UDF that just returns text.
The Registered application has contributor access in the workspace and also has execute permissions on the specific UDFs that I have tested.
I generate a token with the client id and client secret against the https://login.microsoftonline.com/<removed>/oauth2/v2.0/token endpoint sucessfully with a scope of "https://analysis.windows.net/powerbi/api/.default"
Upon using the token generated from the above post request, I make a post request to the endpoint provided by the UDF invokation code with my bearer token and receive a '403 Forbidden' error.
Is there anything that I am missing in terms of permissions, scopes, etc that is inhibiting me from making this function call?
I have been able to recreate the error in Postman with the same steps listed above.
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you
Hi @JeffreyGonzalez
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank you.
Hi @JeffreyGonzalez,
First you might want to check the UDF error codes list. A "403 Forbidden" error might not what you think and is according to the list that the response was too large and the invocation failed. So authentication might be correct, but your response output might be over 30MB. Check the UDF service limits list for the response size limit.
If this does not help, you can try to add the Item.Execute.All permission to the service principal.
Hope this helps. If so, please give a Kudos 👍 and mark as Accepted Solution ✔️.
Niels
User | Count |
---|---|
17 | |
14 | |
8 | |
7 | |
5 |
User | Count |
---|---|
30 | |
28 | |
20 | |
15 | |
11 |