content_image/983450.jpg
## 6.8.5 Test your flow 

When you have successfully created the flow, you will see the running instance Process Salesforce Orders  on the IBM App Connect dashboard. 

Figure 6-258 shows the flow instance in Running state. 

<img src='content_image/983450.jpg'>

1. To test the flow, we first ensure that the related objects are existing in Salesforce with the product code that represent the new stock, this means Orders and Account are linked via an internal generated product ID to Orders and Order Product. If this is not already existed, see step 3 in section 6.8.4, “Create flows” on page 330. You can also refer to https://trailhead.salesforce.com/en/content/learn/modules/field_service_maint/f ield_service_maint_assets . 

2. New stock has arrived via an IBM MQ message: 

a. Log in to IBM MQ console on IBM Cloud. Put a message into DEV.QUEUE.1 that represent the new stock that has arrived. 

b. The IBM App Connect flow Process Salesforce Orders  will be triggered. A notification on the IBM App Connect dashboard will be generated showing that all orders have been successfully processed for the product code that you put into the IBM MQ message. 

3. Orders List is generated as a Google Sheet: 

a. Log in to Google, and check the Google Sheet generated for the Order list. Note that all the Order Product IDs should be the same, this is the internal Salesforce product ID. Figure 6-259 shows the generated list. 

