cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
astrocramp
Level: Powered On

Salesforce oauth2 errors when setting up data connection

I'm having trouble making a connection with PowerApps and Flow to salesforce, which worked at some point in the past. I am able to succesfully query salesforce from PowerBI and use that regularly.  

I've tried authenticating into both the production salesforce.com server with my email address, and also in the sandbox when connected to VPN. The sandbox prompts for domain credentials for SSO, and production I use my salesforce email and password. 

I succesfully authenticate with both methods, and click "allow access". However, before establishing a connection it returns "something went wrong, please try again later" with the production server, and "oauth2 authorization flow failed for service 'salesforce'. Oauth2 sign in failed to exchange code for client access token. 

 

Does anybody see anything obvious that I can try? thank you 

  

 

2 REPLIES 2
test11111
Level: Powered On

Re: Salesforce oauth2 errors when setting up data connection

Hi!

I'm having the same issue while trying to connect to salesforce from Flow.

Have you found any solutions yet?

astrocramp2
Level: Power Up

Re: Salesforce oauth2 errors when setting up data connection

This was never resolved after months of trying to figure this out. It was specific to the salesforce instance - the last instruction from Microsoft support was to disable the attached setting in salesforce, but I didn't have the admin rights  on salesforce and left the company prior to getting the ticket resolved. 

 

In salesforce, disable: "Lock session to the domain in which they were first used"

 

 

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,166)