# Real time flows

**URL:** https://connective.celigo.com/t/real-time-flows/427
**Category:** Integrator.io
**Tags:** acumatica, lookup, flow-builder
**Created:** [July 4, 2023, 7:11am UTC](https://connective.celigo.com/t/real-time-flows/427 "2023-07-04T07:11:26Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![shailareddy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@shailareddy](https://connective.celigo.com/u/shailareddy)
#### Post date: [July 4, 2023, 7:11am UTC](https://connective.celigo.com/t/real-time-flows/427/1 "2023-07-04T07:11:26Z")

</div>

How can I build a flow when there is condition that stage of an opportunity is reached then records should be pushed to Acumatica. If the accounts and contacts related are new then that also should be pushed to acumatica. Should I make serial flow or should it be lookup?

---

<div class="post-metadata">

### Author: ![balasubramanianmahad](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@balasubramanianmahad](https://connective.celigo.com/u/balasubramanianmahad)
#### Post date: [July 4, 2023, 7:53am UTC](https://connective.celigo.com/t/real-time-flows/427/2 "2023-07-04T07:53:28Z")

</div>

Moving this post to the Troubleshoot custom flows section for better reach.

---

<div class="post-metadata">

### Author: ![balasubramanianmahad](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@balasubramanianmahad](https://connective.celigo.com/u/balasubramanianmahad)
#### Post date: [July 4, 2023, 12:36pm UTC](https://connective.celigo.com/t/real-time-flows/427/3 "2023-07-04T12:36:35Z")

</div>

@shailareddy I notice that this post of yours is similar to the [Real time flow triggers](https://connective.celigo.com/t/real-time-flow-triggers/428) post created by you. My colleague Tyler has provided a resolution related to [Create a trigger in a Salesforce account](https://docs.celigo.com/hc/en-us/articles/360051211812-Export-data-from-Salesforce-#CreateatriggerinSalesforceaccount). Are you looking for something else that was not covered in the resolution provided to you.

---

<div class="post-metadata">

### Author: ![shailareddy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@shailareddy](https://connective.celigo.com/u/shailareddy)
#### Post date: [July 4, 2023, 12:39pm UTC](https://connective.celigo.com/t/real-time-flows/427/4 "2023-07-04T12:39:24Z")

</div>

Yes, I am looking for something else.

---

<div class="post-metadata">

### Author: ![balasubramanianmahad](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@balasubramanianmahad](https://connective.celigo.com/u/balasubramanianmahad)
#### Post date: [July 4, 2023, 12:45pm UTC](https://connective.celigo.com/t/real-time-flows/427/5 "2023-07-04T12:45:27Z")

</div>

@shailareddy It would be great if you could provide an explanation of what exactly you are trying to achieve with an example and screenshots (if possible) masking any PII.

---

<div class="post-metadata">

### Author: ![shailareddy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@shailareddy](https://connective.celigo.com/u/shailareddy)
#### Post date: [July 4, 2023, 12:51pm UTC](https://connective.celigo.com/t/real-time-flows/427/6 "2023-07-04T12:51:58Z")

</div>

I have build a flow by taking trigger for Opportunity. From that I should be checking account Id and contact Id. If they are new. Then they should be pushed to Acumatica. For this, I have made a flow. In the source, I have taken sobject as Opportunity and Field specific qualification criteria specified conditions. In the import, I have imported Accounts and contacts. Should I Export Accounts and contacts by adding another source? Should I create any branching?

 ![5301043caa20740200000001-7b764d51b1e24e88be307a9103220d9b.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/7e0fcfc463ee3864933ad41b46ea8acbb5b3604d.png)

---

<div class="post-metadata">

### Author: ![balasubramanianmahad](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@balasubramanianmahad](https://connective.celigo.com/u/balasubramanianmahad)
#### Post date: [July 4, 2023, 2:05pm UTC](https://connective.celigo.com/t/real-time-flows/427/7 "2023-07-04T14:05:54Z")

</div>

@shailareddy Thank you for providing this information. A follow-up question. Are you using a custom flow or the Salesforce - Acumatica template to achieve this result.

---

<div class="post-metadata">

### Author: ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)
#### Post date: [July 5, 2023, 1:58am UTC](https://connective.celigo.com/t/real-time-flows/427/8 "2023-07-05T01:58:40Z")

</div>

@shailareddy on the realtime export you can get all opportunity and account data, but since the contacts are related to the account you would need a lookup step to get that information. Here are some sample screenshots on how you may go about this.

 ![5301043caa20740200000001-e612ca35ad0e4ee38a722ea151ab73a5.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/f/f0add569680f5baac747bb3d3f9a5fbf43ccde77.png)

 ![5301043caa20740200000001-440e0e60cc1f4a6eb4761ab00465fca0.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/b/b9a62a03b668e3904009ab97dc4024885ea9abd5.png)

Lookup query to get contacts associated with the record account id.

 ![5301043caa20740200000001-4edf1144b9d74837920c9a1b93dd2587.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/e/e0b92906b267741979dfb3e59b4707e3e78abe56.png)

From the lookup, result map the contacts into your data so you can use it when importing later in the flow.

 ![5301043caa20740200000001-71f57d864b78454586fd9238a7a140e1.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/b/b2006e2aec2c38e9f79f1665125f6a97bb2991a6.png)

Use result mapping on the Acumatica customer import step to map back the Acumatica customer id that was made so you can then use it on the contact import.

 ![5301043caa20740200000001-4c50322ad43a4f729247b57e1041ab6c.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/c22bbf8f202388f5f64ec05132ca059054f5d2d9.png)

---

<div class="post-metadata">

### Author: ![shailareddy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@shailareddy](https://connective.celigo.com/u/shailareddy)
#### Post date: [July 5, 2023, 7:49am UTC](https://connective.celigo.com/t/real-time-flows/427/9 "2023-07-05T07:49:15Z")

</div>

Thankyou Tyler. How can we make flow when there are 3 different conditions? in the field Specification Criteria, I am not able to select And and or together.

---

<div class="post-metadata">

### Author: ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)
#### Post date: [July 5, 2023, 2:08pm UTC](https://connective.celigo.com/t/real-time-flows/427/10 "2023-07-05T14:08:04Z")

</div>

@shailareddy you can create filter groups and use AND/OR statements.

 ![5301043caa20740200000001-db34002a74cf428495597283e592ccd1.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/f/ff87b4e0988b643dce19cdd5d114d49363d17bc3.png)

---

<div class="post-metadata">

### Author: ![shailareddy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@shailareddy](https://connective.celigo.com/u/shailareddy)
#### Post date: [July 6, 2023, 5:54am UTC](https://connective.celigo.com/t/real-time-flows/427/11 "2023-07-06T05:54:51Z")

</div>

![5301043caa20740200000001-2eed1f2e13b34f0da1d83fbb64e4022a.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/8/8a0753112b1bc22c3e0e686a62a7594111a60a75.png)

Hi Tyler, am not able to click on OR condition even If I do that, after saving it is shown as AND.

---

<div class="post-metadata">

### Author: ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)
#### Post date: [July 6, 2023, 5:16pm UTC](https://connective.celigo.com/t/real-time-flows/427/12 "2023-07-06T17:16:39Z")

</div>

@shailareddy are you adding filters and/or filter groups first? You have to add filters to then specify AND/ORs. You can add via the top right hand corner of your screenshot.

---

<div class="post-metadata">

### Author: ![balasubramanianmahad](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@balasubramanianmahad](https://connective.celigo.com/u/balasubramanianmahad)
#### Post date: [July 7, 2023, 8:03am UTC](https://connective.celigo.com/t/real-time-flows/427/13 "2023-07-07T08:03:23Z")

</div>

@shailareddy To add to what Tyler mentioned:

1. Add filters related to a single type using **Add rule**. In the screenshot below, I added the filters for "OR" type first.
2. Save the information.
3. Click **Add group** and the filter with the other type. In my case, "AND" type filters.
4. Click **Save & close**.

 ![5301043caa20740200000001-f755ccd73e8c455c8b4625ec5eb8b6c0.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/9b850eb87067d6851102ae638ec0e309200aa0de.png)

Hope this helps.
