Monday, February 21, 2022

Sort and SortBy Columns in PowerApps

Introduction: 

In this Blog we will see what is the main difference between Sort and SortBycolumns in PowerApps


Description:

Table Name "ACCOUNT"

Field Name "AccountName"


Sort: 


Consider i have a COMBOBOX Available i need to show the AccountName in the ComboBox.

So i Set ITEMS of ComboBox = "Account"

Now i want to Sort the Table Account in the Combobox using Account Name, What i can do. I can user SORT query there 


Sort(Account,"AccountName",Ascending)

Account - DataSource (table)

AccountName - Column (Column in Table)

Ascending - Sorting Type (Ascending/Descending)


SortByColumns: 


Now i want to Sort the Table Account in the Combobox using ONLY Account Name, What i can do. I can user SORT query there 


SortByColumns(Account,"AccountName",Ascending)

Account - DataSource (table)

AccountName - Column (Column in Table)

Ascending - Sorting Type (Ascending/Descending)



Tuesday, February 15, 2022

Is Application User View Not Displaying in User Table for Creating Application User ?

Introduction: 


In this Blog we will see how to create application user without legacy mode.


Implementation Steps:

 

Usually when create an Application User in Azure, we will directly navigate to https://orgname.crm.dyanmics.com then Go to Settings --> then Click Security --> Then User --> Then Change the View to Application User --> Click NEW --> Change View to Application User and Input Client ID and Save.

 

This is how we will follow to create application user, but unfortunately sometimes you cannot see APPLICATION USER View in the User Table in legacy mode.

 

Lets see how to create Application User without Legacy Mode.

 

1. Navigate to https://admin.microsoft.powerplatform.com and click Environments

 

rampprakash_0-1644924357619.png

 

 

2. Open the Respective Environment where you want to create Application user --> Once Opened --> Click Settings

 

rampprakash_1-1644924436048.png

 

3. Once Settings page Opened --> Click Users + permissions --> then Click Application Users

 

rampprakash_2-1644924483815.png

 

4. Click Application User 

 

rampprakash_3-1644924560271.png

 

if you want Add, New app User then Click + New app user

 

5. Once Clicked On App user -> Select Add an App

 

rampprakash_4-1644924630087.png

 

it will Load all the Application User from https://portal.azure.com

 

rampprakash_5-1644924726972.png

 

Now Search for the User and Click Add Once Done --> Add Business Unit and Select Security Role to the User

 

rampprakash_6-1644924806647.png

 

For Adding Security Role--> Click Pencil Symbol --> Add the Security Role and Click Save

 

rampprakash_7-1644924886508.png

 

 

That's it :slightly_smiling_face:

Wednesday, February 2, 2022

Get office 365 User Email Address powerapps

 Introduction:

In this blog, we will see how to get office 365 user details by filtering logged in user

Implementation Steps:

 

1. Login in to https://make.powerapps.com


2. Create or Open Existing Application


3. Add Office365User Datasource




 











4. Now Add a text field to Populate some details from Office 365.


5. How to Get user Email ?

 

                 User().Email  //Using this syntax we can get email address of user


6. How we can get the Office 365 user Details from PowerApps?


First(Office365Users.SearchUser({searchTerm:User().Email})).UserPrincipalName) // Get User PrincipalName

First(Office365Users.SearchUser({searchTerm:User().Email})).DisplayName) // Get User Display Name

First(Office365Users.SearchUser({searchTerm:User().Email})).Mail) // Get User Mail

First(Office365Users.SearchUser({searchTerm:User().Email})).City) // Get User City


Above i have provided some sample details, you can get more details too :)


Translate Text in Dataverse using AI Builder

Introduction:

In this blog, we will see how to translate text in dataverse using AI Builder

Implementation Steps:

 

1. Create a New Table (Table Name : Translate Text)

 

2. Create Fields

 

         1. Basic Text Name (Datatype : text)

         2. Translated Text (Datatype : text)

         3. Basic language (Datatype : text)

 

3. Once Filed Creation done, add the fields into the Form

 

4. Now Navigate to https://flow.microsoft.com

 

5. Create a New Automated Flow and Select Triggering Point as Dataverse

 

rampprakash_0-1643741610654.png

6. Once Page Gets Loaded do the Following mapping

 

rampprakash_1-1643741650886.png

 

7. Now Search for AI Builder by clicking + Symbol

 

rampprakash_2-1643741686171.png

 

Pass the Text as Basic Text from Dataverse and Converted language to English and Translated From (Auto Detect)

 

8. Now Update the Translated value and base language to Dataverse

 

rampprakash_3-1643741761084.png

 

That's it :slightly_smiling_face:

 

Output Record below 

 

rampprakash_4-1643741788780.png

 

 

For Step by step Guidance, please find my video below

 


Day 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...