Hi Every One,
I have one integration with OAuth and token generated in header so how to fetch token from integration header.
I have tried like rule!Ma_integrationobjectname().result.header.token but getting null value.
Can anyone suggest on this.
Regards,
Devi
Discussion posts and replies are publicly visible
Devi,
Try the expression "rule!Ma_integrationobjectname().result" to see the result of the integration call. Based on the response body structure, you can index the token from the response body.
Yes, VimalKumar,
My scenario :
I have integration with Authorization code grant type. User not authorized then I'm displaying button with authorization link.
Before showing button I want to check user authorized or not based on integration token. How to check authorized or not??
See if there is an endpoint available to check the validity of the existing token or else you can call an endpoint(Can be a simple GET API to test the connection status) with the existing token. Check the status of the integration call, if the success is true. You can hide the button else you can show the button.