Flow app with Dynamics 365 CRM
Logical workflow engines like IFTTT and Microsoft Flow are
services, that allow web accessible applications to trigger actions within or
across other web accessible applications.
The application requires an API connector to the service, and,
many connectors have already been developed.
·
In our
case, Microsoft Flow is our logical engine of choice, a connector, and a few
templates already exist.
·
The
template acts as a good starting point and can be customized to meet one’s
needs.
·
We’ll
create a new contact by tapping on a Flow button from our mobile phone.
·
A Flow
button is a button that lives on a mobile device and when clicked, triggers
something to happen.
·
In our
case, when the button is clicked we want it to create a contact in Dynamics
365, and then send a welcome email to the new contact.
·
The
description of the template from Flow is, “Create a new contact in Dynamics
365 with a button tap. Enter the contact’s info (name, phone number, email
address and additional notes) and it’ll be created for you, as a new contact in
your Dynamics 365 account. You’ll get a notification for successful flow runs.”
Below is the Contact information which will be captured in the
predefined template:
Let’s say this Flow button will be used at a trade show and we
will be meeting a lot of people.
We only want a few fields to enter and we would like to shorten
the field titles and descriptions.
We would also like to know the Contact’s mobile number rather
than the template’s Business Phone, and we don’t need a personal note.
We prefer to send an email to the contact with our personal
contact information as opposed to creating a Flow system notification.
Flow provides the ability to customize and to expand the logical
conditions to meet our needs.
The benefits of this sample are:
·
No
coding
·
Non-Related
Accounts/Systems/Orgs/Services speak to one another
·
Short
concept to production time
The perquisites are:
·
A
Dynamics 365 account (with CRM)
·
Cloud
based email account (like Office 365 Outlook or Gmail)
The steps:
1. Sign into Dynamics 365
2. Sign into Flow
3. Search within Flow using the keyword “CRM”
4. Select “Create a new contact in Dynamics CRM”
5. You will be taken to a confirmation screen, Click the
“Continue” button at the bottom of the screen. Edit the Form Fields:
·
Change
“First Name: to “First”
·
Change
“Please enter contact’s first name” to “First Name”
·
Change
“Last Name” to “Last”
·
Change
“Please enter contact’s first name” to “Last Name”
·
Change
“Contact email” to “Email”
·
Change
“Please enter contact’s email address” to “Enter a valid email”
·
Delete
“Business Phone”
·
Delete
“Personal Note”
·
Add a
new field to the form by clicking the “plus sign”Enter field name as Mobile and
the description as Mobile Phone
·
. From
the “Create a new record” condition, select your Organization Name and Entity,
in our case, Contacts.
Mobile Form Mapping:
Add the mapping of the “Mobile” field we added in the form
above., click on the “Edit” link in the Create a new record step, then click
“Show advanced options.”
8. Scroll to Mobile Phone and click inside the textbox. Then
select “Mobile” from the dynamic content list and click “Hide Advanced
options.”
9. remove the push notification and replace it with a custom
welcome email to our contacts. - delete “Send Push Notification,” by
clicking on the ellipses and then “Delete.”
10. To add our new condition, click the New Step button on
bottom of page. Select “Add an Action” and search for “Office 365 Outlook –
Send an Email.”
Note: You can search for other email provider such as Gmail or
MailChimp or send the contact a Tweet
11. Click “Sign in” and enter the credentials of the email you’d
like to send emails from (such as, donotreply@example.com)
12. Next, we will configure the welcome email template with the
dynamic fields we’d like to send to our new contact.
Start by clicking inside of the “To” text box and select the
“Email” field from the list. Continue to populate the template of the email
subject and body as desired, then click “Save flow” at the bottom of the page.
Note: In this example, we’re using post condition values that
were entered in the Form and accepted/processed in CRM. One may require running
post condition data cleansing or updates within CRM. An example would be
duplicate checks or checking against do not email rules. This requires a wait
condition in the Flow, however, that is not covered in this blog post.
13. Download and install the “Microsoft Flow” App from the app
store.
Note: In our case, we’re using an Android Device, although not
much different, the remaining steps will be specific to Android.
14. Once the mobile app is installed, login with your Microsoft
Flow credentials.
15. Add a new widget to your phone’s home screen and select Flow
followed by the Flow you’d like to use:
16. Now you’re ready to use the Flow Button. Simply tap on it
and complete the form.
17. Check your test mailbox and find the new welcome message.
18. Check CRM to
validate your new contact and details.
The power of Flow is exceptional and the possibilities will
continue to grow as new connectors are developed and templates are created.
Flows can be personal or shared within an org. Like CRM
workflows and plugins, the logic can be as simple or as complicated as one
desires.
The value of Flow is in the openness of the framework paired
with rapid growth of APIs and the Internet of Things.
The information which you have provided in this blog is really useful to everyone. Thanks for sharing.
ReplyDeleteMS Dynamics Trade and Logistics Training