Flow scenario #5: Send a document to new member on joining group

In a Managed Hub and Spoke group (Public Group) created for any event, it is a common requirement to send a message / document to the member who joins the group. I have picked up a case where a member joining the group would be sent a brochure (document) on joining the group. In order to achieve this in Flow, I would need to do the follow the below steps:

  1. Upload the document to Kaizala and get the Media Resource string
  2. Build a Flow to send the document to the subscriber joining the group

Upload document to Kaizala and get Media Resource string

We could avoid this step and directly upload the document / brochure in the same flow that would be sending the document. But I wanted to avoid uploading the same document to Kaizala each time a subscriber joins the group. This could be done by manually uploading the document to Kaizala using a REST client (like Postman) or a script using APIs. You could use the below API present in the Postman API collection for Kaizala (if you are new to Kaizala API, please refer Getting started with Kaizala APIs).

Upload document

Once you choose the document and hit send, the API would return you a mediaResource string. Cache this string, we will be using it in the subsequent step.

Build a flow to send document to new subscriber

Now you could build a simple Flow to automate this scenario by going to https://flow.microsoft.com. It would just have one trigger and one action:

  1. Trigger: When member is added to a group
  2. Action: Send action on a group

Add the trigger: When member is added to a group

You can browse for connectors and triggers, search for Kaizala to select the Kaizala connector. Subsequently, search for the trigger “When member is added to a group” and add it. Configure it by selecting the group you want to build this scenario on.

Note: This group should be a Managed Hub & Spoke group (or Public Group) as a regular group does not support targeted sending of content. Also, the person joining should be a subscriber.

Member added trigger

Add action: Send action on a group

Click on add an action and search for “Send action on a group”. Configure the action by clicking on “Show advanced options” to reveal Subscribers field on the action.

  • Click on the Subscribers field and select the Member Mobile Number from the dynamic content popup

dynamic content

  • Select document from the action dropdown
  • Select the group to which you want to send the document
  • Add a caption for the document
  • Paste the media resource string cached in the previous step into the Media Resource field

Below screenshot demonstrates this:

send brochure

Click on Update Flow to save the Flow.


This Flow would be triggered when a subscriber joins the group and would send the document targeted to the particular subscriber. The same could be replaced with sending an image / action.

Hope this was helpful. Do let me know if you have any comments / questions.

6 thoughts on “Flow scenario #5: Send a document to new member on joining group

  1. Can you check the below:
    1) You are using a public group / managed hub and spoke group
    2) In Flow, configure the “Send to all subscribers” to No and the Subscribers to the member mobile number


      1. There is a form to be filled, in that form with several other details user want to select multiple images and submit. On submission it will call external API and post the data with images. In this scenario how can we send the images. Please suggest.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s