There are thousands of real-world use cases for extending Dynamics 365, and your business, with Microsoft Azure. Here's just a few of those that I've either built for clients or have found interesting and valuable.
- Schedule jobs (data updates, rollups, workflows, emails, reminders) to run any time or day using Azure Logic Apps, WebJobs, Azure Functions, Azure Scheduler and other services. If you ever find yourself saying "I wish we could to XYZ every last Friday of each month", or something similar, then know that Azure opens up all of those scheduling possibilities.
- Copy all or some of your Dynamics 365 Online data to SQL Azure. Use a WebJob or Worker Role to periodically copy data to SQL Azure for further analysis, reporting, and backup.
- Tweet-o-matic! Use Azure Logic Apps to respond to a change in Dynamics 365 to send out a Tweet. The event from CRM is sent to an Azure queue. The Logic App picks up the message and formulates and sends out the Tweet. Or reverse the process: Use a Logic App to listen for tweets and update CRM accordingly.
- Host a custom website (public or internal) that reads and writes CRM data. With Azure Web Apps, your page will be delivered fast and reliably, no matter how many visitors appear.
- Dynamics 365 workflow not getting the job done? Further automate your business processes with an Azure Logic App. Easily add actions and conditions, interact with Facebook, Twitter, Dropbox, OneDrive and many more services. And if you need some advanced decision making or external data lookups then create an Azure Function to do that work and provide the results back to your Logic App.
- Clean up your data! Run a data quality tool on an Azure VM and update Dynamics 365 with the results.
- Create a custom report for a CRM dashboard. Schedule an Azure WebJob to build an HTML-based report and store it in CRM as a Web Resource. Add the Web Resource to a dashboard to provide employees timely information to make strategic decisions.
- Search the contents of all emails and attachments. Send emails to an Azure queue. Store the content in Azure Blob Storage. Use Azure Search to quickly find files and emails by keywords.
- Store survey data in Azure Cosmos DB and search for it from a CRM form. This keeps survey data out of your CRM storage but still accessible for display and analysis.
- Send a WebHook from a CRM workflow to an Azure Web App that returns product payment and shipping status.
- Store CRM metadata in Azure Redis Cache. Multiple Azure cloud services (worker roles) use this cache while processing data to validate data based on CRM field data type, picklist values, field lengths, etc. Caching CRM metadata will allow your custom websites and integrations run faster.
- Move your CRM file attachments to Azure Blob Storage to save money (CRM storage can be expensive). Provide a custom grid in CRM to list and load the attachments.
- Aggregate (e.g., using Azure Data Factory) survey responses, feedback, social media content etc. and provide a full-text search capability within Dynamics 365, using Azure Search, to help facilitate decision making.
- Predict opportunity win/loss probability for a prospect based on existing CRM data using Azure Machine Learning. Examples: 1, Templates
- Run a CRM on-premises instance on an Azure Virtual Machine.
- Use Azure Automation to move data from Dynamics 365 via PowerShell to Power BI.
- Integrate CRM data to any other system using Azure BizTalk services. For example, send product orders from CRM to an Azure queue and allow BizTalk to send the data in EDI format to your shipping company.
- Provide instant product recommendations to your customers using Azure Data Factory along with your CRM data.
- Host Adxstudio portals in Azure.
- Send customer feedback to Azure to gauge the sentiment of messages to help sales, customer retention, support and more.
- Run packaged enterprise applications on an Azure VM, such as SQL Server Enterprise Edition, SQL Server Integration Services (SSIS) and SQL Server Reporting Services (SSRS).
- Be your own Trailblazer: Improve your business with Dynamics 365 and Azure.
- Feed your CRM real-time data from any type of device with Microsoft's Internet of Things (IoT) technologies running in Azure.
- Send your CRM data (e.g., new case/incident records) to an Azure Service Bus queue. From there, a WebJob can process the data and send it to your ERP system.
- Create custom help pages in CRM for users to get more specific information about your CRM system. Host the help pages in an Azure website.
- Provide single sign-on to an Azure-hosted ASP.NET website. Provide your custom page in an IFRAME.
- People still love receiving data in Excel format. To automate the delivery of Excel-based data to your staff, create a WebJob, Worker Role or similar in Azure in conjunction with Aspose.Cells for Cloud. Store the Excel file in Azure storage and send it using Azure Logic App's Office 365 email feature.
- Provide video-based CRM training using Microsoft Stream. Customize CRM's help pages to show the video content. This could provide a much more effective way to provide CRM training compared to paragraphs of text and screenshots.
- For CRM administrators who want to be notified about plug-in issues, one idea is to create an Azure Logic App that monitors (polls) CRM's Plug-in Trace Log (plugintracelog) entity for records where the Exception Entity field has a value (in other words, plug-ins that failed). The Logic App could send an email with the plug-in tracing details so the admin can take action... even before an end-user sends that "hey, something's broken" email to IT.
- Overcome the two minute execution limit for CRM plug-ins by using an Azure service such as a WebJob or Azure Function -- where your operation can run for much longer when needed.
- Create and schedule an Azure WebJob that periodically queries CRM metadata and sends out an alert when something important has been created or modified. Store the metadata in Azure SQL and use T-SQL to quickly identify differences. Where this could be valuable is in a CRM organization where admin or customizer rights have been granted to several people and the main admin wants to keep a handle on how CRM's structure is changing over time.
- Automate the start up and shut down of an Azure Virtual Machine to handle periodic tasks that require a full VM. For example, let's say that you want to run an SSIS process each night (perhaps using KingswaySoft) to copy large amounts of your CRM data to a local SQL Server instance but you don't want to pay for a VM that runs 24x7. By scheduling the VM startup and shutdown, you can use (and pay for) only the computing time you need.
- Create an Azure Logic App to send a reminder email to CRM users when a Task is due.
- If your organization is maintaining or building custom applications, using Azure's platform-as-a-service (PaaS) offerings has the following benefits according to a Forrester study published in 2016: 1) IT administration resource savings, 2) Avoided and reduced IT resource costs, 3) Improved service deployment time to market, 4) Application testing resource savings, 5) New business opportunities. When analyzing your business processes and related costs, if there's an application, integration, website or other solution that could save your organization time and money, then Azure PaaS is there with the capabilities needed to make it happen.
- Implement reliable auto-numbering to CRM records using an Azure Logic App, Azure Function and a Storage Queue. The idea is to seed a storage queue with the numbers (or unique strings) you want to apply to new CRM records. Create a Logic App that runs on create of CRM records. Call the Azure function to get the next value from the queue and then update the CRM record from the Logic App.
- Microsoft Azure to Dynamics 365 is like having a Home Depot nearby for your house: your home is livable but to make it better takes buying some tools and pounding some nails. The promise of Microsoft Flow is to turn those tools that require some skill into automated power tools, where you point, click and get great results. Combining Microsoft Flow and Dynamics 365, opens up hundreds of possibilities for improving your business processes. It's now within the reach of non IT staff to further automate data entry, document preparation and delivery, data analysis, reporting and much more.
- This page provides examples on how you can add functionality to Dynamics 365 with Azure Logic Apps. However, for reasons such as complex business logic, there are scenarios where a Logic App can't retrieve or update the required CRM data. Fortunately, it's possible to combine Azure Logic Apps with Azure Functions to build out advanced workflow processes.
- Are you hiring a consultant to work on your CRM or related systems? To make sure you retain the source code and can further develop the solution, set up an Azure Virtual Machine with Visual Studio and other needed tools and have the consultants remote connect to the VM to do their work. You can create a Visual Studio Online account and use the source control engine it provides.
- Create an Azure Logic App to send an email alert to you when a system job (run by the CRM async service) ends with a "Failed" status. This allows the system administrator to get ahead of a problem before it becomes more widespread.
- For auditing, security or job performance reasons, if you'd like to know who opened a particular CRM record, one idea is to create a CRM plug-in that runs on the Retrieve message. This plug-in can send a message to an Azure Service Bus queue and an Azure Logic App or Azure Function can then write the record id, user id, and date and time to an Azure Storage Table.
- Get a text message when an Opportunity in CRM is won or lost. To do this, create a CRM Service Endpoint that sends a JSON message to an Azure Service Bus queue when an opportunity is updated and the statuscode is set. In an Azure Function, parse the JSON, check the values and if the opportunity was won or lost then invoke an Azure Logic App to use Twilio to send the opportunity details to you in a text message.
- Analyze CRM plug-in trace logs. Azure WebJob runs every hour to get CRM plug-in trace log record and writes statistics (plug-in name, event, total execution time, trace text, exception, etc.) to SQL Azure table. SQL queries provide aggregate statistics such as which plug-ins are running the most often, which plug-ins are taking the most time to finish, which plug-ins are throwing an error, etc.
- Allow for an audit of CRM data changes or retrieval by sending JSON-based messages from a CRM Service Endpoint to Azure Cosmos DB. You can "fire and forget" the data to Cosmos DB and later query the data when needed.
- To simply add a note to a CRM record, such as an account, contact or opportunity, there are several clicks involved in the CRM UI and this can become a barrier to getting important details saved in CRM for others to view and act upon. Microsoft Flow, hosted on Azure, provides opportunities to streamline the process of saving notes, and other information or files, in CRM. The Flow template named "Attach OneDrive files about Dynamics Contacts as notes" is an example of how you can use Flow to allow users to simply type notes into folders and have the Flow do the work of saving the note to CRM. Or imagine a Flow that reads data from Excel Online uploaded to OneDrive and updates the corresponding record(s) in CRM.
- Many businesses would like to automate the process of getting Excel calculations into CRM without the need to write a CRM plug-in or other type of custom application. One no-code way to do this is to use an Azure Logic App to query CRM for the needed data, save it to Excel Online, retrieve the calculated value(s) and save the information back into CRM.
- Start an Azure Logic App from a CRM workflow. One way to do this is to create a custom CRM entity that will be used to send commands to an Azure Logic App. The CRM workflow creates a command record and a Logic App gets the command and runs through its process. This is one way to extend CRM workflows into the cloud.
- Some Dynamics 365 Online users are saving storage space by moving note and email attachments to external storage, including Azure blob storage. Others still want or need attachments within CRM's database but would also like to free up space and avoiding paying for more. One idea for this is to write an Azure WebJob that will run daily to retrieve new attachments, zip them, and save them back into CRM. A password could also be applied to the files while zipping them, adding extra security if this is needed.
- Send encrypted emails from CRM workflows using Azure Rights Management service
- Query on how values in CRM change over time. Send data changes to an Azure service that then stores the changed value in an Azure SQL Temporal table.
- Search your CRM data with dtSearch in Azure. If you need to instantly search hundreds of gigabytes or terabytes of files of all types, using advanced querying such as fuzzy and proximity searching, check out the various dtSearch products.
- Is CRM's FetchXml giving you the blues? Feel like one hand is tied behind your back when trying to query your CRM data? Why not use a tool like Skyvia to copy data to SQL Azure so you can break free of the FetchXml limitations! (Or, do like I've done, use the CRM SDK, C#, Entity Framework and SQL Bulk Insert to create your own ETL solution.)
- Your car has sensors, so why shouldn't the system that runs your business (and pays for your car) have sensors as well? Too often, I've seen CRM workflows, integrations, plug-ins etc. that are built to serve an important purpose in CRM, but are then deployed without any mechanism to report on whether or not they're still working. Azure can help with this. It has various schedule-able services, such as Logic Apps, Azure Functions and WebJobs, that you can use to periodically query your CRM data and detect whether expected data is in place. For example, if you are expecting a plug-in to write custom records each day but that stops for some reason, an Azure-based monitoring app can send a high-priority e-mail out to you so that you can proactively determine the cause and fix the issue.
- Allow your customers to use their voice and messaging for self-service. The Microsoft Bot Framework provides a platform for organizations to build applications—bots—that consumers can interact with, easily, conversationally, over voice or text, whenever convenient.
- When you have the need to quickly build and deploy a custom .NET app that runs on a schedule, sends/receives queue messages, sends emails and/or reads/writes to Azure blob storage, you can have the app running in an hour or two using Azure WebJobs along with the WebJobs SDK.
- Keep on top of CRM news, tips, etc. with Twitter and Microsoft Flow. One way to improve your CRM system is to increase your knowledge of the product and related tools and technologies. Each day, there are 200+ Tweets sent out for hashtags #MSDynCRM, #Dynamics365, #MSDyn365, etc. You can use Microsoft Flow to listen for those Tweets and send a copy of them to you by email. Create a rule in your email app/system to move the Tweets to a new folder and you'll always be on top of the latest news!
- There are hundreds of possible uses for Azure Functions. Here's a presentation that shows several real-world scenarios.
- Use Microsoft PowerApps to build custom line-of-business applications that bring together data from CRM, NAV, Common Data Model and other platforms.
- Dynamics 365/CRM to on-premises SQL Server using Azure Logic Apps.
- Create your own API in Azure Functions. Build an API to for off-loading Dynamics 365 or other data operations. You can take advantage of the endless scalability and processing power of Azure, all with your own custom API endpoints running as low-cost Azure Functions.
- For complex business workflows or those that will likely run for a long time, consider using Azure's Durable Functions. Consider Durable Functions when it's necessary to orchestrate business processes that are external to Dynamics 365 (e.g., flows involving OneDrive, SharePoint or any other service or database) or when they will make developing a business process easier to monitor and cancel if necessary. One use case is to create a Function that waits until specific records in Dynamics 365 have data and for one or more files to exist in OneDrive.
- Send out a daily e-mail with aggregate values from Dynamics 365. For example, send a count of new accounts, opportunities, open and closed cases, etc. to the company's management by e-mail to keep them informed. One idea for doing this is to use a Logic App that 1) retrieves FetchXML aggregate queries from Azure Blob Storage, 2) loops through each FetchXML file, 3) Sends the FetchXML query to an Azure Function to execute and return the aggregate value (using a server-to-server connection to D365), 4) append the returned value to an HTML table and 5) send the resulting values in an e-mail.