2

In my Zapier action I'm using 0Auth2 for authentication everything works fine, but I want to use some value coming from authentication test method while making other API calls, I was trying to pass it across by setting that value one of the variables in a bundle.inputData object but it is not working, I want to know if there is a way to achieve this.

result from testAuth method is something like this

{
 "name":"User name",
 "networkId" : 12
}

I want to use that networkId property in other API calls.

vimalDev
  • 412
  • 1
  • 4
  • 25

1 Answers1

2

David here, from the Zapier Platform team.

You can achieve this by adding an input field with computed: true and returning networkId from the getAccessToken.

There's more info in these docs.

​Let me know if you've got any other questions!

xavdid
  • 5,092
  • 3
  • 20
  • 32
  • Great! If this answer solved your problem, make sure to upvote it and mark it as correct ([info](https://stackoverflow.com/help/someone-answers)). – xavdid Apr 30 '18 at 17:30
  • @xavdid, it will be helpful if you can explain with an example how to set computed value for this question: https://stackoverflow.com/q/50386771/665961 – Haris ur Rehman May 17 '18 at 09:02