Posts

Showing posts with the label Power Apps

Get file from email attachment and add it as notes in the timeline using Power Automate.

Image
In Dynamics 365 CRM, a timeline allows users to view a chronological list of activities, notes, and posts related to a record. The timeline is available on the record form and can be customized to show relevant information. Overall, the timeline in Dynamics 365 CRM is a useful feature that allows users to quickly view the history of activities related to a record and stay up to date with the latest information. In this blog we are trying to show the attachment from an email as notes in the timeline. For the demonstration we are using a table named  Agreement . There is an email field in the agreement table. Let us assume that there will only be one record with each email address. Let us start the flow by adding the trigger 'When a new email arrives (V3)'. Set the folder to Inbox , Include Attachment to Yes , Subject Filter to ' For Testing ' and Only with Attachments to Yes . Since the above filter criteria are given, only the email falling in inbox with attachment and ...

Exception handling in Power Automate

Image
Exception handling is the most common practice used in programming to tackle unwanted or unexpected events. Since exception handling deals with anomalies, it avoids program error, flow error and system crashing.  There are many reasons that can cause exceptions, including expression error, invalid user input, loss of network connection, user attempting to open files that are not available. The Try Catch mechanism is used to capture exceptions. Try defines a block of statement that may throw an exception. When a specific type of exception occurs, the catch block catches the exception. Now let us consider a usage scenario to understand Try-Catch mechanism within power automate. We can use a Power Automate flow to send an HTTP request and based on the response we need to acknowledge the receipt in the CRM. If the response to the HTTP request is ‘ true ’ we need to change a field in CRM to Success . And if the response is ‘ false ’ the field in CRM should change to Failed. There can be...