# Configure the shipping address subflow

Use this subflow to capture buyer information such as Bill To, Ship To, and Email.

1. Click **Setup** ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2F4ZLFovJZkyfVMWtaaYha%2FSetup.png?alt=media).
2. Type `Flows` in the **Quick Find** field and click **Flows**.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FJOfrXz6Q84oi9ak5Ptk4%2FQuick%20Find%20-%20Flows.png?alt=media)
3. Scroll down and click **Subflow - Shipping Address**. The Flow Builder opens in a separate tab.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FKoonDoKz00lFzHZPRIZl%2FFlows%20-%20Subflow%20-%20Shipping%20Address.png?alt=media)
4. Drag the **Action** element from the left pane and drop it in the right pane. ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2Fkx2ANLyxPS5WNen3cSjY%2FAction%20element.png?alt=media)\
   The New Action popup dialog appears.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FyVw8WbBqV6ljLqqG9mbH%2FNew%20Action.png?alt=media)
5. Select **Type** from the **Filter By** dropdown list and click **Apex Action**.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FbiPzOG7gTcj0Gn29wdXL%2FFilter%20By.png?alt=media)
6. In the **Search Apex actions** field, type `digitalriverv3_DRB2B_ClearData`, and click **digitalriverv3\_DRB2B\_ClearData**.
7. Toggle **cartIdList** to **Include**, and enter the following values in the fields:

   * **Label:** Type `DR Clear Data` or any other name with no restrictions.
   * **API** **Name**: Type `DR_Clear_Data`.
   * **cartIdList**: Type `{!cartId}`.

   <img src="https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FACXgGr3L3lLQJhcwAFdv%2FNew%20Action%20completed%20fields.png?alt=media" alt="" data-size="original">
8. Click **Done**.
9. Drag the **Apex Action DR Clear Data** to the right of **Screen Shipping Address Screen** as shown below.\
   ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FrDllVqgM74Ep4ABiIKBk%2FApex%20Action%20DR%20Clear%20Data.png?alt=media)
10. Click the link between **Start Checkout Flow** and **Shipping Address Screen** and press the **Delete** key on your keyboard.\
    ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FPVs6mPnPfmbrXjCCYZLn%2FApex%20Action%20DR%20Clear%20Data%20delete%20link.png?alt=media)
11. Click the circle below **Start Checkout Flow** and drag it to **Apex Action DR Clear Data**.\
    ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FT2IJAksPz8B5tfi60bYM%2FLink%20Start%20Checkout%20Flow%20to%20Apex%20Action.png?alt=media)
12. Click the circle below **Apex Action DR Clear Data** and drag it to **Shipping Address Screen**.\
    ![](https://2681600133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFDmrn2Xgg8KN7ITpu9Nw%2Fuploads%2FQnCUzC1CWTL2xGpe44PH%2FLink%20Apex%20Action%20DR%20Clear%20Data%20to%20Screen%20Shipping%20Address%20Screen.png?alt=media)


---

# 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.digitalriver.com/salesforce-lightning/salesforce-lightning-b2b-commerce-app-1.3/integrate-the-salesforce-lightning-app/step-17-integrate-the-digital-river-components-into-the-checkout-flow/subflow-configuration/configure-the-shipping-address-subflow.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.
