cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Reinier
Helper II
Helper II

PowerApps trigger 401 error for getting CDS record

Hi All, 

I build a canvas app from which I want to trigger an approval flow after which I want to update a CDS record. 
However, I keep getting the 401 error (see image below) which for me is really strange as I created the CDS environment. 

Moreover, I have admin rights in both PowerApps and Automate. I cannot imagine that I need any other rights. 

I tried multiple configurations (get before and after approval trigger, and update CDS record right away) and also checked the GUID of the record. There were other posts regarding this topic but none discussing CDS with PowerApps trigger. 
Probably, it is something real easy but I cannot seem to figure it out... 

Do I need to turn flow on for environment? Do I need special rights? ... 

 

Help is much appreciated. 


I couldn't find the answer to my question on the form but I expect that i

Reinier_0-1596117194757.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

Hi @Reinier ,

 

It can happen that you have changed your password recently. So you need to update the connection of CDS by reentering password or creating a new connection altogether with new password.

 

Thanks

View solution in original post

3 REPLIES 3
ManishJain
Solution Sage
Solution Sage

Hi @Reinier ,

 

It can happen that you have changed your password recently. So you need to update the connection of CDS by reentering password or creating a new connection altogether with new password.

 

Thanks

v-bacao-msft
Community Support
Community Support

 

Hi @Reinier ,

 

This seems to be related to your use of the PowerApps button as the trigger. If Flow triggers when the record is changed, you can consider using When a record is created, updated or deleted directly as the trigger.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @ManishJain ,

Thanks! I rebuilt the flow and now it works just fine. It is strange though that the exact same flow works. I also found that working in an incognito browser works even better. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,516)