# Salesforce Opportunity to QuickBooks - Disabling Jobs

## Salesforce & QuickBooks BiDirectional Template <a href="#salesforceopportunitytoquickbooks-disablingjobs-salesforce-and-quickbooksbidirectionaltemplate" id="salesforceopportunitytoquickbooks-disablingjobs-salesforce-and-quickbooksbidirectionaltemplate"></a>

1. Log in to your DBSync account.
2. **Validate** your connection settings for Salesforce and QuickBooks.
3. Navigate to flow **Opportunity to invoice** flow. In the Transform\&Write section, open the map for Sequence No.2. Then, replace the mapping of **Process Records When** from **"true" to "false"**.
4. After making the above changes, DBSync will not create jobs in your QuickBooks.
5. The above procedure can be replicated for other mappings - like OpportunityToSalesOrder, OpportunityToSalesReceipt, OpportunityToEstimate, and OpportuintyToCreditMemo.
6. Open mapping for the **Invoice** and make the following changes to the source and target mappings.
7. Find the target field **"InvoiceAddRq/InvoiceAdd/CustomerRef/FullName"** and replace the source code by copy and paste the following: LEFT(VALUE("Account/Name"),41)&#x20;
8. Open Mapping for **Invoice update** and make the following changes to the source and target mappings.
9. Find the target field **"InvoiceModRq/InvoiceMod/CustomerRef/FullName"** and replace the source code by copy and paste the following: LEFT(VALUE("Account/Name"),41)

## Salesforce & QuickBooks Online Template <a href="#salesforceopportunitytoquickbooks-disablingjobs-salesforce-and-quickbooksonlinetemplate" id="salesforceopportunitytoquickbooks-disablingjobs-salesforce-and-quickbooksonlinetemplate"></a>

1. Login to your DBSync account.
2. **Validate** your connection settings for Salesforce and QuickBooks Online.
3. Navigate to Task for **SalesForce to QuickBooks OpportunityToInvoice.** Open the flow OpportunityToInvoice. Then, open the map for **Sequence No.2** and replace the mapping of **Process Records When** from **"true" to "false"**.
4. Open mapping for ***Invoice** sync* and make the following changes to Source and Target Mappings.
5. Find the target field **"CustomerRef"** and replace the source code by copy and paste the following:

{% code overflow="wrap" %}

```
IF(ISEMPTY((String)SESSION_GET("CreateJobFlag")),LEFT(VALUE("Account/Name"),41),
LEFT(VALUE("Account/Name"),41)+":"+ LEFT(VALUE("Name"),41))
```

{% endcode %}

This completes disabling Jobs for your Salesforce and QuickBooks Online solution template.


---

# 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/salesforce-opportunity-to-quickbooks-disabling-jobs.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.
