3 weeks ago
I'm going to update the existing account which contains a short-lived access token and then the account is used in HTTP client snaps. But it doesn't work, looks the account is loaded once for all pipelines including child pipelines. Is this expected behavior? Is there a way to dynamically update an account?
Here is how the refresh token pipeline looks. The pipeline uses SnapLogic Read and Update snaps. It is executed before usage of the account in other pipeline:
Thanks
Solved! Go to Solution.
3 weeks ago
Thanks for suggesting. The HTTP client doesn't support any Dynamic Accounts. I guess REST Dynamic OAuth2 Account will work for the snap REST Post.
I already found a solution using the account OAuth2 Account which refreshes the access token automatically but that was tricky because I only have client id, client secret and refresh token and so I was not able to authorize and also the field Refresh token is not editable in the account. But I finally updated the field one time using the SnapLogic Update snap.
3 weeks ago
Hi @Andrei_Y ,
It would be more helpful if you could specify the type of account you are trying to update.
However, in general, SnapLogic offers a feature called dynamic accounts. Dynamic Accounts provide expression-enabled fields, allowing you to use expressions for connection information rather than literal values. You can also leverage the concept of parent and child pipelines for processing per document or batch, passing values as Pipeline parameters. Below is a link that lists the account types that support dynamic accounts and their associated dynamic fields. https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/2586148875/Dynamic+Account+Types
3 weeks ago
Thanks for suggesting. The HTTP client doesn't support any Dynamic Accounts. I guess REST Dynamic OAuth2 Account will work for the snap REST Post.
I already found a solution using the account OAuth2 Account which refreshes the access token automatically but that was tricky because I only have client id, client secret and refresh token and so I was not able to authorize and also the field Refresh token is not editable in the account. But I finally updated the field one time using the SnapLogic Update snap.