cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract header from custom connector

sampath
Deputy Chef III
Deputy Chef III

Hi,

I built a custom connector and it is working fine. Then I got other file upload requirements, but it didn't work with the custom connector's post action. So, I had to implement a Python script that can upload the file to API when manually providing an access token.

question is: Is there any way to extract the access_token or header information from the custom connector?

progress so far: I added custom action and it can returns the connection variable. but it only contain user_id, password, etc..

Is there anyone who can help on this?

 

Thank you

 

1 ACCEPTED SOLUTION

marlon-muela
Workato employee
Workato employee

Hi @sampath 

This is Marlon from the support team.
Yes, there is a way to extract the access_token or header information from the custom connector.
You can use after_response method to extract the API call response headers: https://docs.workato.com/developing-connectors/sdk/guides/error-handling.html#after-response

View solution in original post

2 REPLIES 2

marlon-muela
Workato employee
Workato employee

Hi @sampath 

This is Marlon from the support team.
Yes, there is a way to extract the access_token or header information from the custom connector.
You can use after_response method to extract the API call response headers: https://docs.workato.com/developing-connectors/sdk/guides/error-handling.html#after-response

Thanks @marlon-muela  I will try and let you know. 🙂