Make the token for Survey123 valid indefinitely for Microsoft Power Automate Flows that use the Survey123 connector

1179
13
11-17-2023 07:20 AM
Status: Open
Labels (1)
ColForbin
Occasional Contributor

Currently with a Microsoft Power automate (MSPA) flow that uses a connector for ArcGIS Survey123, the security token for the connector seems to only be valid for 30 days.  After this time, the flow will fail due to an invalid token with the error:

{
  "error": {
    "message""Missing required parameters: \"token\"",
    "code""001"
  },
  "success"false
}

 

Because the main reason for using a MSPA flow is to automate certain tasks, it would be ideal if this token would be valid either indefinitely, or for a much longer period of time, for example 1 year.  When the token lapses, there seems to be only one way to get the connection to work again and that is this:

https://community.esri.com/t5/arcgis-survey123-questions/changes-to-survey123-connector-in-power-aut... 

 

13 Comments
RobertAnderson3

As far as I am aware the timeout is 14 days, unless they had changed it recently. But yes this needs to be fixed.

ColForbin

@RobertAnderson3 see the response to this idea: https://community.esri.com/t5/arcgis-for-power-automate-ideas/solution-for-timeout-for-power-automat...

The responder says that the ArcGIS Connector in Power Automate was updated to expire in 90 days, but the Survey123 connector has a limitation of 2 weeks for refresh tokens.  He indicates that there are plans to address this issue in the coming year.

ISP_graynic

Has there been any updates to this? We really need the token to last longer than 14 days. 

ColForbin

@ISP_graynic not that I'm aware of.  It is very inconvenient, I have a recurring item in my calendar every 14 days to refresh it which is not ideal.

ColForbin

@SeanKMcGinnis Just wondering if this issue is in the plan to be resolved in the near future?  Thanks.

SeanKMcGinnis

Hi @ColForbin - the ArcGIS for Microsoft 365 team has been working with the Survey123 team  to address the issue with the refresh token not being renewed. We are going to bring the Survey 123 trigger and actions into the ArcGIS Connectors for Power Automate. This will address the two week timeout by leveraging the ArcGIS Connectors connection. We are expecting to have that migrated over with the next release which is slated for early summer of this year.

RobertAnderson3

Thank you for the update @SeanKMcGinnis! This is huge.

The trigger seems fine as is since the payload includes the token, it's the Create report function I always run into it with, but bringing them together makes a lot of sense.

It may be too early to know/share, but is this expected to impact existing flows that have been created with the Survey123 trigger already?

ChelseaRozek

@SeanKMcGinnis Thanks for the update! Would this also impact Integromat/Make?

SeanKMcGinnis

@ChelseaRozek You are welcome for the update. I am not aware of any planned updates to Make.

ColForbin

@RobertAnderson3 that's interesting, my flows will fail after 14 days even the ones that do not create a report.  @SeanKMcGinnis thank you for the update!