Skip to main content
RaulOcana
Level 3
Jul 23, 2019 10:47 PM UTC
Solved

Send random delivery between two options to single user

Hi guys,

I have this WF that is triggered by a query that reads a schema and sends the delivery. The point is that I have two deliveries (A and B) and I want that to send the A or B randomly. Since there is only 1 person by send, I don't know how to use the Split activity since it is based on segment and my segment is always 1.

So this set is not working:

Do you have any idea how to workaround this please?

Regards,

Raúl

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
Community Advisor
Jul 24, 2019 2:07 PM UTC

Hi,

In your split, use query filtering with this as the predicate:

Random() greater than .5

Thanks,

-Jon

3 replies

Anita_punmiya
Level 5
Jul 24, 2019 12:24 AM UTC

Hi Raul,

If I understand your question correctly, you are sure you will always have one record after random sampling to 50-50 .

Split works like mutually exclusive unless you select "enable overlapping" option.

Hence, whichever is the first sub-set defined would have the records as per the random sampling.

In your case, if you are attaching delivery A to the subset ,"Enviar Promo Millas", then the record would get this delivery.

If you still want to send both the deliveries to that one record , you can use fork activity after the split sub-set and attach both A and B deliveries to it so that the same record would receive 2 deliveries.

Hope this helps.

Regards,

Anita

Translate
RaulOcana
RaulOcanaAuthor
Level 3
Jul 24, 2019 1:28 PM UTC

Hi Anita,

Thanks for your response. I will always have one record on the flow, but I want the system to send the delivery randomly, I mean, sometimes send the A and other times the B, but never both.

The set up that I posted is always picking the A option since my segment is always 1 record.

Regards,

Raúl

Translate
Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
Jul 24, 2019 2:07 PM UTC

Hi,

In your split, use query filtering with this as the predicate:

Random() greater than .5

Thanks,

-Jon

Translate