Hello, what can I do to prevent delivery logs from being generated for a delivery with a population of 0? | Community
Skip to main content
Level 2
January 31, 2024
Solved

Hello, what can I do to prevent delivery logs from being generated for a delivery with a population of 0?

  • January 31, 2024
  • 1 reply
  • 699 views

In a workflow, I have a segmentation that creates 4 audiences with 4 respective deliveries, but in some cases, the result of that segmentation is 0. Nevertheless, the delivery runs and generates a delivery log with 0 recipients. This clouds my reports. Do you know what solution I could find?

 @sukrity_wadhwa Thanks for answering previous questions!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @javi_landa ,

You can have 'Test' activity before delivery as below,

 

And give the condition as vars.recCount > 0  inside Test Activity

 

So, when the workflow runs, if the result is more than 0, then only delivery will gets created.

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
January 31, 2024

Hi @javi_landa ,

You can have 'Test' activity before delivery as below,

 

And give the condition as vars.recCount > 0  inside Test Activity

 

So, when the workflow runs, if the result is more than 0, then only delivery will gets created.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Level 2
January 31, 2024

Hello! I appreciate your response, and I largely agree with your points. However, I'm exploring other options that might be cleaner or more sophisticated.

I appreciate your assistance, and I'm open to any additional suggestions you may have, To not fill the workflow pannel with a lot of different activities,

Thanks in advance!

isahore
Community Advisor
Community Advisor
January 31, 2024

@javi_landa,

you can also do the same in the initialization script of the delivery activity. If vars.recCount = 0, then mark the activity as complete and move on to the next transition.

I don't have the code with me, I would have shared it.

 

Parthasarathy's solution is the standard and clean approach, adding code to your delivery activity init script is not as clean.

 

BR,

Ishan