You are viewing limited content. For full access, please sign in.

Discussion

Discussion

api source_url

posted on August 9, 2024

I'm using an API to integrate Laserfiche with a 3rd party webapp. The first step in getting the REST token is to get the authorization code, but I've only been able to do it through the browser as the code is returned in the redirected url. Most of the time it's not an issue, but if there's a slow day the refresh token will expire and I'll have to go to the url, get the auth code, and then manually update the database with the new code so the workflows that request a new REST token will work.

I want to automate this with workflow so I don't need to interfere in the process but I can't figure out how to get the source_url with the web request response in Workflow.

Has anyone run into this before or know how to get it in the workflow web request activity tokens?

0 0
replied on August 9, 2024

Hi Cassandra,

I had a similar situation where I had to invoke a workflow from the initial workflow to make a POST to get the auth token, and then return it to the initiating workflow to use in a second call.  It would basically retrieve the username and password from the database, send the initial call in the invoked workflow, report it back to the original workflow which would then use it immediately in the second call.  That way it always used the updated token.

 

Rick

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.