Microsoft Flow & Survey123 login prompt

2053
9
Jump to solution
08-13-2018 08:03 AM
AaronKoelker
Occasional Contributor III

It appears the ability to login to ArcGIS Online when setting up a Survey123 trigger in Microsoft Flow has been lost:

 

A few weeks ago I set up a Microsoft flow trigger with Survey123 to send out an email whenever a new survey was submitted. The setup was easy and the trigger still works perfectly. However, today I went in to edit the email that is sent, and found that I had lost access to the dynamic content ability that lets you insert fields from the survey into the email text with a click. I'm sure I can still write it out in HTML (@{triggerBody()['feature']['attributes']['fieldname']) etc, but the one-click was nice. I figured the "Flow" had forgot my ArcGIS login, so I went to create a new flow using a Survey123 trigger and was never prompted to login to ArcGIS online - which means no surveys to choose from my content, and no dynamic content. Again, I think I can just type in the item ID of feature service attached to the survey here -- and it will work -- but I'm curious if anyone else is having this issue, and if there is a fix or it is a bug that needs to be addressed. It all worked perfect only a few weeks ago, and I was so impressed!

 

I've seen the same issue on Chrome and Firefox, and have restarted/cleared cookies/etc. 

No prompt to login, and no surveys in dropdown

Dynamic content still shown in text body on left, but no option to add new dynamic content on right

-Aaron
0 Kudos
1 Solution

Accepted Solutions
JamesTedrick
Esri Esteemed Contributor

Hi Aaron,

This is a known issue with the Flow Connector at this time - the access token is expiring.  You will need to create a new connection to your account via the Survey123 Connector's menu.

View solution in original post

9 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Aaron,

This is a known issue with the Flow Connector at this time - the access token is expiring.  You will need to create a new connection to your account via the Survey123 Connector's menu.

AaronKoelker
Occasional Contributor III

Ah, I see. I thought that option would be used to add a different kind of trigger, since Survey123 was already in there. Doesn't seem like there is a good way to delete the old "expired" connection without removing the dependent actions, though. And I still have to remake the action, in order to get the dynamic content option back. Mostly just an annoyance, though. Thanks James. 

-Aaron
0 Kudos
by Anonymous User
Not applicable

Hmmm. Even after establishing a new connection for the web hook; the dynamic feature content is still not available for me. Do you have to save the web hook first after making the new connection? This could explain why one of my web hooks is not functioning correctly after functioning fine for a couple weeks.

Any information would be greatly appreciated.

Mike

0 Kudos
erica_poisson
Occasional Contributor III

Hi Mike, I just had to run though the process of reconnecting three times, and finally I was able to see my dynamic content! Not sure why it didn't work on the first try for me, but I finally got it.

Erica
by Anonymous User
Not applicable

Interesting as it took me the same number of attempts at creating a new connection for it to recognize my account and survey information. Now how do you get rid of the other two that didn't work(highlighted below)?

Thank you for the information.

0 Kudos
by Anonymous User
Not applicable

Spoke to soon as I still do not have the option for the Dynamic content within my original setup web hook, but if I create a new one, then I have access to it?

0 Kudos
by Anonymous User
Not applicable

Strange...after I went back in I noticed that the connection had changed to a none working connection, but after changing it to the third connection and saving; I had access to the dynamic content again?

0 Kudos
AaronKoelker
Occasional Contributor III

I had to build a second identical webhook to get the dynamic content to work again. I never got it working for the original that had its token expire, and deleted it. 

-Aaron
0 Kudos
MikeFiguray
New Contributor III

I was able to fix this by going to Microsoft Flow (Power Automate now) -> Connections -> Find Survey123 and click the 3 dot menu to the right and select "Switch Account". Log in using your ArcGIS login and it should work.

0 Kudos