In this blog, we learn how to connect to accounting data in QuickBook Online (QBO) in a Power Automate using a Custom Connector. This approach provides a way to access QBO data in Microsoft PowerApps for things like recording employees timesheets, creating invoices, etc.
– A trial subscription works as long as it includes Microsoft PowerApps and Microsoft Flow.
Steps:
Start by importing the Postman collection found on the Intuit Developer website into Postman.
Set up and test queries in Postman (intuit.com)

Download one of the Postman collections. Collections give you sets of pre-built requests to test with.
You can now see the imported collection in Postman.

Create a new collection and copy an API that you want like Customer-ReadAll in into your new collection using drag–drop. I have added two requests to my new collection.
After that replace the variables in the URL with specific values. We are accessing a sandbox environment so {{baseurl}} should be sandbox-quickbooks.api.intuit.com. In this example company ID is 4620816365208485510 so replace {{companyid}} with your company ID.
https://{{baseurl}}/v3/company/{{companyid}}/query?minorversion={{minorversion}}
is updated to
https://sandbox-quickbooks.api.intuit.com/v3/company/4620816365208485510/query?minorversion=8
If you are accessing a production QBO environment replace {{baseurl}} with quickbooks.api.intuit.com
In Postman, on the Authorization tab, we need to set up the access token for that set the values as below in related fields.

———————————————————————————————–

———————————————————————————————–
| Callback URL | https://www.getpostman.com/oauth2/callback |
| Auth URL | https://appcenter.intuit.com/connect/oauth2 |
| Access Token URL | https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer |
| Client ID | [Your QuickBooks Online app Client ID] |
| Client Secret | [Your QuickBooks Online app Client Secret] |
| Scope | com.intuit.quickbooks.accounting |
| State | 1 |
Click on the Get New Access Token button, it will ask for signing in. proceed with steps and it will generate an access token for you.
The query is in the Body tab. Click on the Send button and check the result.


Navigate to PowerApps in Office 365. Create a custom connection by importing a Postman collection just exported.

Enter the collection name and select the file to import in the following popup. Click on Continue.

Configure General settings in the next step.

Enter sandbox-quickbooks.api.intuit.com in Host
Configure Security setting by adding following values wherever applicable.
| Client ID | [Your QuickBooks Online app Client ID] |
| Client Secret | [Your QuickBooks Online app Client Secret] |
| Authorization URL | https://appcenter.intuit.com/connect/oauth2 |
| Token URL | https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer |
| Refresh URL (same as Token URL) | https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer |
| Scope | com.intuit.quickbooks.accounting |
Check the Definition setting and create the connector.
In the Test tab, Click on New connection to create the connection for this custom connector and test a sample API operation.
After successfully being created, we can access this connector in Power Automate. For example, If You want to read all customer data then it can be done using below.
Select custom connector, you just created from all available.

———————————————————————————————–

Click save and test the flow. You can use whatever API you want using this way from QuickBooks.
====
Plus read