You will need
- Your tyntec API key from your tyntec account
- Your WhatsApp Business Account Number that has been assigned to you by tyntec
- Your WhatsApp Message Template
- A mobile phone with WhatsApp for testing
- A testing Microsoft Dynamics account with the Marketing app installed
- A Microsoft Power Automate Subscription license in your Dynamics Environment
- A Contact in your Microsoft Dynamics with the mobile number set to your WhatsApp phone number
- A testing Event record in your Microsoft Dynamics
Tip: You can use the default message template named default_welcome.

The sample Flow works in your Microsoft Dynamics background and automatically listens to the creation of a new Event registration (the Trigger). Once triggered, it calls the Action Send WhatsApp Template Text message to the assigned Contact in the Trigger.
1. Open your Power Automate.
2. In the left dropdown menu, click the Create button.
3. From all possible Flow types, select Automated—from blank.
Automated flows run when an event triggers, Instant flows on a manual trigger, and Scheduled on a given time condition.
4. In the design window pop-up, use the search function to find the event When a row is added, modified or deleted from Microsoft Dataverse. Then click the Create button.

You are now in the UI Flow designer that can add Actions to your Flow and chain them into algorithms. The designer automatically creates When a row is added, modified or deleted trigger step.
5. Within the When a row is added, modified or deleted step, set the Trigger condition to added, The table name to Event Registrations, and Scope to Organization. Your Trigger is now listening for any new event registrations.


Please ensure to use a consistent format for telephone numbers that does not include the "+" sign and adheres to the guidelines outlined in the E.164 standard.
Please ensure that you only use WhatsApp templates that have been approved by Meta. When prompted to enter a template name or ID, please enter the exact name or ID of the approved template as it appears in your WhatsApp Business Account. Note that the template ID is the same as the approved template name.
Please ensure that you use only the language code associated with the specific templateID that you want to use. You can find a list of supported languages for WhatsApp message templates here.

10. Set parameters:
a. body type - 1 to text
b. body text - 1 to your preferred text.
The components body text - 1 specifies the content of your WhatsApp message parameter. Set the value to your desired text.
You can use dynamic content to autofill data. For example, in the default template, you have one parameter, the user's name. To automatically use it, set the components parameters body text - 1 field to First Name dynamic content.



Congratulations on completing your Flow!
More?
The main power of the tyntec WhatsApp Business connector is that you can use it alongside any connector (Dropbox, for example) that is in Power Automate. Using the Microsoft Dataverse you can access any entity within your Dynamics environment.
If you would like to scale the capabilities of this flow, it could be a good idea to add analytics to it. Each time you use the Send WhatsApp Template Text message action the Flow receives a messageId dynamic content as a response. Using the tyntec WhatsApp Business action Status Check with the messageId returns you the status of your message (for reference, look at the API Reference). You can save the response from the Status Check within a custom entity or attach it as a note to the Event Registration using the Create a record action or the Update a record action.


More information about webhooks as triggers can be found here.
If you are having trouble getting two-way messaging working, please contact our support team at support@tyntec.com