Webcraft Solutions

How to use Flexible Height Gallery in Canvas App

In Power Apps, a flexible height gallery is a dynamic container that shows a collection of data. Based on the information it contains, it dynamically adjusts its height to fit different types of data. By adapting to various screen sizes and presenting data in an organized way, this aids in the creation of adaptable and aesthetically pleasing interfaces. Steps to Implement Flexible Height Gallery Note:                            Conclusion: 1. Responsive Design: Flexible galleries adjust fluidly to various screen sizes to ensure that images are shown appropriately and proportionately on platforms ranging from tiny smartphones to giant desktop monitors. 2. Better user experience: Viewing images doesn’t require users to zoom in or scroll far. 3. Cross-Device Compatibility: With flexible galleries, your material is available on many platforms, including smartphones, tablets, laptops, and desktops. This improves the overall user experience and decreases annoyance, making it easier for visitors to engage with your content. Your potential audience and engagement are increased by this compatibility. 4. Uniformity: Flexible galleries contribute to uniformity in look and feel across devices. This uniformity strengthens your brand identification and gives users a sense of professionalism. Thank you, Vijay for your valuable input.

Filter Grid data, and Save results as a View

Introduction: Views in model-driven apps specify the data that is tabulated and displayed on a grid page. Views that have been developed by an administrator, shared with others, and normally can’t be changed are called System Views. Dynamics 365 2022 release wave II includes a new functionality that provides the ability to save the filter conditions on a grid as a personal view as well as enables you to manage and share views. You can save time with this effective feature. Following types of views are available in model-driven apps: How to Filter grid data, and save results as a view?   To select the filter condition, click on the Edit Filters To remove a condition, select More commands (…) next to the row, and then select Delete To add one or more conditions, select Add option The following options are available to add conditions in the filter editor To add a condition, select Add row,  To select a value, click on the down arrow  After editing the view filters, select Apply to see changes on the grid page How to Save edits as a new view? On the command bar, select More commands (⁝) > Create view > Save as new view Enter a new name for the view, and then select Save How to Manage and share personal views? To manage and share views, turn on the modern Advanced find options. Click on the Save button In the view selector, the Manage and share views option is available Select the Manage and share views option Select View commands (…) and then choose the Share option Select the user to share the view Set the permissions Select Share option Conclusion: This feature is helpful because it increases Productivity by preserving the quick find filter conditions as a personal view and it also optimizes time. References: – Filter grid data, save results as view | Microsoft Learn Thank you , Amisha for your valuable inputs

Power Platform: CI/CD Pipeline

CI/CD pipeline containing Azure DevOps is well known and is necessary for the automated deployment of solutions from the development environment to the user acceptance test and from the user acceptance test to the production environment. Solution: – In Dynamics 365-2022-release wave 2, Microsoft introduced a feature called Power Platform Pipeline for deployment of Solution from Dev to UAT and UAT to Prod. To deploy the feature, no additional integration would be needed. To use the feature, your tenant only has to be configured. Prerequisites: – Steps to configure the environment: – NOTE: – The development environment and target environment must have Type and Region same and environment as a managed environment. 2. Give the name to your environment select region and type same as the “Host Environment” 3. Enter the URL to your Environment and give the access to D365 apps and select whatever you want to choose, and then click on “Save” button. 4. Repeat the steps for Target environment as well. 2. Give the name to your environment select region and type same as the “Host Environment” 3. Enter the URL to your Environment and give the access to D365 apps and select whatever you want to choose, and then click on “Save” button. 4. Repeat the steps for Target environment as well.  Steps to setup “Host Environment Configure Pipeline: – Note: – if you have one more environment like production then add one stage in that fill the pervious deployment stage “UAT environment” so it will do UAT to Prod movement of a solution. Deployment of your Solution. Conclusion: – You can quickly and easily deploy your solution into a development-to-UAT environment. We won’t need to manually perform it or need Azure Integration with CI/CD. The solution migration will be a little bit simpler thanks to this automation method. Thank you, Vijay Kumar for your inputs

Boost Cloud Flows with Process Insights

Problem Definition: Building cloud flows of acceptable quality, should be in the mind of every Power Automate developer. After hearing this guideline, one would naturally ask what makes a flow ‘good-quality’. Furthermore, how can we be aware whether a flow is working up to its full potential? This blog shall provide the answers to these types of questions. After all, our goal is not only to automate processes in Dynamics 365, but to make them efficient – every connector used should serve a purpose, that the flow cannot do without. To begin your cloud flow investigation, first start off with a sample cloud flow. Solution: Once you are done opening your cloud flow in Power Automate, click on ‘Improve your flow’. Your cloud flow will keep track of its run history – This can help you analyze if your flow has improved, or if any new issue has been discovered during the different runs of the flow. Once clicked on, the flow’s downloading process will start. After the download is completed, you will see a pop-up stating your report is ready. A Power BI dashboard will be opened, where you can see all information about your flow, such as a flowchart, average case duration, the custom attributes that have been used and much more! Interestingly, you can even add your own custom filters if you want to keep track of differences among different versions of the same cloud flow. The screenshot below can give you a better understanding on how the dashboard will look like. Out of all the components of the dashboard, let us explore the flowchart in better detail. Notice how your flowchart will contain nodes and arrows, highlighted differently, with different thicknesses and will be marked with labels and number. Here is a brief explanation of the meanings of the labels. An arrow with a greater thickness indicates that the step is frequently executed, as compared to steps which have a thinner arrow. In addition, the darker the node, the longer will be the execution time. As far as the labels are concerned, the number at the top indicates the number of seconds it took for a particular step to execute, and the percentages show the probability of visiting a specific node. Consider the Following Points: Conclusion: To fully understand how the ‘process advisor’ works, just play around with the dashboard, and try using it on any flow that you currently have on your CRM environment. Then, try making minor changes on the flow, and notice the changes that take place in the dashboard. Jot down your observations and make gradual improvements, when inspecting the next cloud flow given to you. Happy learning! References Used: https://docs.microsoft.com/en-us/power-automate/task-mining-tutorial Thank you, Tanmay for your inputs.

Searching on a table is easier with Dataverse Search in Dynamics 365 CRM

Introduction: In Dynamics 365 CRM, we have different search options to search data. As we have hundreds of records of different table, Relevance Search aka Dataverse Search is a global search box that gets the record information across all the tables. There is a new feature introduced in 2022 release wave one for Dynamics 365 CE on Dataverse search. This feature will help users to search & filter for records in model-driven Power Apps. This will make Dataverse Search easier than before to find the data.  Description: What is Dataverse Search? Dataverse Search is a great tool to find quickly records across all the tables. It delivers fast and comprehensive result to all tables, sorted by relevance. In model-driven apps, this Search Box is available in the header in the environment. If we opt into early access of 2021 release wave 2 on a production environment, Dataverse Search is enabled automatically. But if not, we need to enable the Dataverse Search. How to Enable & Configure Dataverse Search: – Before Enabling Dataverse Search: – After enabling Dataverse Search: – Dataverse (Relevance) Search is used by the Dataverse Search Index. You can manage & configure the index from the Overview section of a solution. Under Manage Search Index: – It will show us all the tables which are present in the current solution. When users select the tables for indexing, it will show the number of fields that are included in Dataverse Search. These columns are dependent on the Quick Find View. The limit for Columns indexed in this environment is maximum 950 per organization. Users can enable or disable indexing for a specific table from here and can adjust which columns are included in Dataverse Search within the Power Apps portal. Conclusion: With this new update in 2022 release wave one for Dynamics 365 CE, it is just easy to find the record, it also helps minimize the no. of clicks required to find or to get there. References: – Thank you, Shubham Dhumal for your inputs.

Compressing Image Attached in Notes

Problem Statement: Sometimes user has to upload or attach image inside Notes Section of form. When user uploads any image in Notes, dynamics stores image in Base 64 format. As frequency of uploading/attaching images increase then it will also increase the size requirement in CDS. To reduce the size requirement in CDS, we can compress image while storing it in CDS. Solution: When user attaches Image in Note(annotation), we can trigger Post Operation Async Plugin to Compress Image. When image gets attached to Notes, it gets stored as Base 64 inside “documentbody” field. So, we have to trigger Plugin on ‘Create of Notes’, get Base 64 code of Image, Compress Image and Update New Base 64 Code in Notes. Following Plugin code Converts Base 64 Code to Image format compresses Image without loosing quality and then reconvert it to Base 64 code: Plugin Code: (JPEG) Dynamics store Image attached in Note(annotations) in Base 64 form. Image Body will be stored in “documentbody” field and Image Type will be stored in “mimetype” field. Get Image Body and Image Type using following code: Now, create following method, which will compress Base 64 image. We have to pass Base 64 code and quality to custom method which will be used to compress image. Using this method, we can compress image till 10% – 90%. So, pass Image Quality between 10-90. Add Encoder method in class as it is used in “Base64StringImage” method. Once Base 64 Image Code gets compressed, our method will provide new Base 64 Image Code. Store it in new variable. Now, Update Document Body of Note(annotations) with new Document Body. Plugin Step: After Registering our code as New Plugin Assembly, add Step on Create on annotation (Notes). Make Execution Mode as Asynchronous as there will be chances where multiple users will upload Images as same time. Example: Image with Size: 1465 KB Uploaded Image in Notes: Image After Compression: Conclusion: Using above the plugin on Annotation Entity we can effectively compress image size by 10% to 90%. This will help us to save CDS size. Thanks Mayur Hande for your inputs on this blogs.