Skip to main content

Yesterday I exported the below Postman collection and imported it into PowerAutomate as a custom connector, got everything configured in my custom connector and it worked fine. I was able to sign into my account to create a connector to my app, then made multiple successful API calls to/from my tenant. 

 

This morning, I checked one of the PowerAutomate flows I had running for an automation I’d like to move off of Python. It started to error out at some point this morning for the API calls, stating "TokenInvalid" "Token not found" "OAU-213" - which is strange since I did not define a token TTL, so it should have defaulted to 7 days. Signing back into my app has resolved this issue, but I would like for it to refresh on its own so that the automation works flawlessly like my Python one did. 

 

Is the token TTL still defaulted to 7 days?
Also is there anything on the roadmap to integrate with PowerAutomate like you all did with Zapier? I see there was an idea request a while ago which I voted on, but nothing about it actually being implemented.

 

Here is what my custom connector is using:

Postman Collection: https://www.postman.com/cs-demo/ringcentral-public-api/overview
Host: platform.ringcentral.com
Auth URL: https://platform.ringcentral.com/restapi/oauth/authorize
Token URL: https://platform.ringcentral.com/restapi/oauth/token
Refresh URL: https://platform.ringcentral.com/restapi/oauth/token

The refresh token TTL is 7 days. The access token TTL is max 1 hour. When the access token expired, you can use the refresh token to get a new access token. Remember that every time you refresh the  access token, you will get a new refresh token as well and the TTL is set again for 7 days.


Awesome, I think it might have been a fluke or a Microsoft problem, because the automation has been working all day. 

Thanks as always Phong!


Reply