In this blog, we will learn how we can create one random color in RGBA format by generating random numbers.
We have a Canvas App, where we have created one Display Form. Here, we have displayed the list of categories of All Accounts in the color-coded format as shown in the below screenshot. In the below screen we want categories of all Accounts to be shown in color-coded format, so it is necessary to display all categories of Accounts in Unique colors. For this, we want to generate random colors for each industry and assign them to a specific category.
We can generate the random color using Rand() or RandBetween() function in Canvas App. Please find the below syntax for the above function.
Rand() = This function will generate one random number greater than 0 but less than 1. For example 0.26786, 0.65784.
RandBetween(START_RANGE, END_RANGE) = This function will return the whole number between the range that we provide to the…
More About This Author
Inogic is one of the leading Microsoft Dynamics 365 ISV since 10+ years. Its flagship product Maplytics™ is a market leading certified (CfMD) geo-analytical mapping app. Maplytics empowers Dynamics CRM users across industries with the power of geographical data visualization, route optimization and along the route search with turn-by-turn directions, appointment planner, locational search by radius and shapes with drill-down filters and color-coded pushpins, heat maps, shape layers & territory management.
Inogic is renowned for its high quality and low-cost offshore development services and productivity apps like InoLink: QuickBooks + Dynamics CRM, User Adoption Monitor, Attach2Dynamics, Alerts4Dynamics Click2Export, Click2Clone, Kanban Board, SharePoint Security Sync, Lead Automation & Distribution, Map My Relationships, Auto Tax Calculator, Subscription and Recurring Billing and Marketing4Dynamics.
- Dyn365CE2022.08.16Modify and delete multi-table lookups within Dynamics 365 CRM
- Dyn365CE2022.08.12Performance Insights (Preview) in Model-Driven Apps
- Dyn365CE2022.08.10Multi-Select Option field in Dynamics 365 V9.2 using Power Automate
- Dyn365CE2022.08.08Use of Enable Managed Environments(Preview) feature in Power Platform