Hi. I've built a custom connector to my Enterprise Survey123 in Power Automate following these instructions: https://support.esri.com/en-us/knowledge-base/create-an-arcgis-survey123-connector-for-microsoft-pow....
I get all the way to the last step to test my connection where I run into issues. I'm able to request permission to my Portal and click "Allow" to sign-in with my Portal user account. However, the connection never actually gets established and I get an error in Power Automate that says "can't sign in". I'm never able to see my list of surveys because I can't establish a connection. Screenshots attached.
Does my Enterprise Portal user account need certain permissions to be able to login via Power Automate? Or is it a MS 365 account issue? I'm confused!
Thanks!
If you press F12 on your keyboard, go to the Network tab, what does the error say? Specifically, do you see a "CORS" error?
EDIT: you will need to press F12, do this process, and look at what pops up. You cant do this afterwards since it only records "live".
Hey @ShelbyZelonisRoberson , have you resolved this issue? I am running into the exact same problem.
Hi @abureaux , I tried looking at Network tab. Not very familiar with how to read the messages, but I dont see a "CORS" error. Below are 2 errors I got.
Do you have any ideas on what might be causing this? Any help is appreciated. Thank you!
Margo
Before you begin:
Esri's instructions are a little outdated now. Here is a simplified set of instructions.
1) I skip over a bunch of optional things.
2) I am using Portal 11.3. These instructions should be applicable for at least 11.3 and 11.4. There may be some slight differences if you use 11.0 - 11.2. If you are still pre-11.0, Esri's instructions may be better aligned with what you see in Portal.
Procedure
Part 1. Create App in Portal
Part 2. Power Automate
1. Load Power Automate and log in
2. Look for "Custom connectors" on the left. If you see it, skip to Step #5, below. Otherwise, move on to Step #3, below
3. More > Discover all
4. Scroll down and look for "Custom connectors" under the Data group > click Pin
5. Custom connectors > + New custom connection > Import an OpenAPI from URL
6. Set Connector name to whatever you want > Enter a valid URL (see details below) into Paste in the URL for the Open API field
https://survey123.arcgis.com/api/template/swagger?portalUrl=<ENTERPRISE_URL>
<ENTERPRISE_URL> is the URL to your ArcGIS Enterprise deployment, including the web adaptor, for example, https://myserver.mycompany.com/arcgis
8. Click Import > wait for app to load (<1 second in my test) > click Continue once its available
9. Click 2. Security
10. Copy over Client ID and Client secret from your Portal Application (created in Part 1), and copy Token URL into Refresh URL
It should go without saying, but don't use the values in my screen caps. That is my app created for this test, and it will already be deleted by the time anyone reads this.
11. Click Create connector
12. Click 6. Test > + New connection > Log in
13. Select GetOwnedSurveysList > click Test operation
14. Scroll to bottom of page once it finishes loading (<5 seconds in my test) > look for Validation succeeded
15. If you get this far, you are probably fine. You can follow the regular guide for the other tests if you really want, but it is a little out dated and missing content, so don't expect a 1:1
Hi! I really appreciate the detailed documentation! Unfortunately we are still on 10.9, but I am sure other people will find it useful.
And I failed at 'Before you begin' part, our portal is on our internal network. I should have read the note carefully.. But now I know why. Thank you for your help!
All good, so long as you got your answer!
I keep getting a Invalid "redirect_uri" when I try to connect.
I really appreciate the super detailed tutorial @abureaux, but I also get the error message:
@AshlandGISI found the answer to our error msg.
Go to Step 6 here in this tutorial article - Create an ArcGIS Survey123 connector for Microsoft Power Automate for use with ArcGIS Enterprise.
After following this step I get the "Request for Permission" page to load then I test the new connection.