# Retrieve Custom Field Value from QuickBooks Online

The process of retrieving value from custom field of QuickBooks Online is discussed below with the example.

**Syntax**

```
TargetField > VALUE("CustomField[Name='Custom_Field name']/StringValue")
```

Let us take an example of custom field ***SalesRep*** in Invoice of QuickBooks Online. To retrieve the value of this field and to insert in the Target field ***Salesrep*****\_\_c** of Salesforce Opportunity.

TargetField should be ***Salesrep*****\_\_c.**

The query to retrieve the value from custom field SalesRep should be:

***VALUE("CustomField\[Name='SalesRep']/StringValue")***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-workflow/tutorials/salesforce-and-quickbooks/retrieve-custom-field-value-from-quickbooks-online.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
