When setting up an app on the developer platform for Quickbooks Online I need to get one value that QBO gives in the Oauth2.0 flow but I cannot figure out a way to get this value.
So my Auth URL is set correctly as so:
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/170c02a2-7abe-42e5-ba08-40aa19485424.png)
And when I authenticate via this flow intuit redirects back to my app url like so (I removed the values but the keys are the same)
https://zapier.com/dashboard/auth/oauth/return/AppTTTTCLIAPI/?code=stuff&state=blue&realmId=xyz
NOTE: See the realmId=xyz at the end. That is the value I need. This is the ONLY time this value is given in the Oauth flow and there’s no API endpoint to request this value again.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/01b1f9e7-87cc-4007-9412-39dffb09c62c.png)
Typically I would get the contents of a response to the Access Token Request though {{bundle.inputData.field}} or {{bundle.authData.field}} but since this realmId comes before the POST to the Access Token Request URL the information is not stored or at least I don’t know how to access it.
So I created a Computed Field, called realmId.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/dabe8253-2eb8-4800-aa7e-2e34de4690c2.png)
But then I get this as intuit is redirecting back to my Zapier App:
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/c0a94e35-bad5-4ca2-ab2b-d39fb1193747.png)
The crazy part is ON THAT PAGE, check out the URL if I scroll to the right:
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/3169f430-2591-4987-9cea-a9c7269b19db.png)
So I assume that Zapier’s Oauth2.0 flow is grabing the code and state from the query parameters, but how can I tell it to grab the realmId as well?
I thought maybe switching to Code Mode on the Auth URL would give me the ability to process the returning information from intuit but no.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/c18ac9ab-1568-4a7d-a7e7-bb601cf8a479.png)
Any help you can provide would be awesome!
Best answer by ikbelkirasan
View original