Get

Your Workflow URL
https://connect.pabbly.com/workflow/mapping/IjU3NjcwNTZkMDYzNDA0MzU1MjY1NTUzZDUxM2Ii_pc
Your Task History ID
IjU3NjUwNTY1MDYzNTA0Mzc1MjY0NTUzMzUxMzQ1MTYzNTQzMDBmMzQi_pc
Consent to Access & Modify
I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
I want to trigger one WhatsApp message to a group, where the WhatsApp Group ID can come from either of two input fields.

Requirement:
  • If Field 1 (Group ID) is not empty, use it.
  • If Field 1 is empty, automatically pick the Group ID from Field 2.
  • Only one message should be sent, using whichever Group ID is available.
Please guide me on how to set this logic inside Pabbly Connect.
 

Preeti Paryani

Well-known member
Staff member
Hello @deepak9780097800,

To guide you correctly, could you please confirm which exact fields you are referring to as Field 1 and Field 2 for the WhatsApp Group ID?

From your workflow, we can see the following two keys available:

  • Whatsapp Group ID
  • Whatsapp Group ID-Lead
Please let us know which one should be treated as the primary field and which one as the fallback. Based on this, we will guide you on setting up the logic in Pabbly Connect so that only one WhatsApp message is sent using the available Group ID.
 

Preeti Paryani

Well-known member
Staff member
Hello @deepak9780097800,

Thanks for confirming.

Use a Router with two routes:

  • Route 1: Filter → Whatsapp Group ID is not empty
    Map Whatsapp Group ID in the WhatsApp action.
  • Route 2: Filter → Whatsapp Group ID is empty
    Map Whatsapp Group ID-Lead in the WhatsApp action.
This ensures only one message is sent using the available Group ID.
 
Top