Showing posts with label PowerApps. Show all posts
Showing posts with label PowerApps. Show all posts

Wednesday, March 9, 2022

How to Show Hyper link in Canvas PowerApps

Introduction:


In this Blog we will see how to show HyperLink in PowerApps Canvas.


Implementation Steps:

 

1. Navigate to https://make.powerapps.com

 

2. Click Apps --> Select new --> Select Canvas App (Tablet/Phone)

 

3. Once Page Loaded --> Click Insert --> Click Text --> Select HTML Text

 

rampprakash_0-1646847718775.png

 

 

4. Once HTML Loaded  --> Click HTML TEXT in fx and write below code

 

"<a href='https://microsoftcrmtechie.blogspot.com'>Open Ram Blog</a>"

 

rampprakash_1-1646847853941.png

 

 

5. Now Run the Application 

 

rampprakash_2-1646847882821.png

 

That's it :slightly_smiling_face: if you click on the Link it will open up in Another Page :slightly_smiling_face:

Monday, March 7, 2022

How to Patch Person Lookup with PowerApps

Introduction: 

In this Blog we will see how to Patch Person Lookup with PowerApps with SharePoint.


Implementation Steps:


Consider a Scenario, we need to Update or Set Person Lookup Field from PowerApps


Patch Logged in User to a Lookup Field:


Patch(

    'TABLE NAME',

        PERSONLOOKUPNAME: {

           '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",

           Claims: "i:0#.f|membership|"&User().Email,

           Department: "",

           DisplayName: User().DisplayName,

           Email: User().Email,

           JobTitle: "",

           Picture: ""

        }

    }

);


Patch different User to a Lookup Field:

 Patch(

    'TABLE NAME',

        PERSONLOOKUPNAME: {

           '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",

           Claims: "i:0#.f|membership|email@emaildomain.com",

           Department: "",

           DisplayName: "USER FULLNAME",

           Email: "email@emaildomain.com",

           JobTitle: "",

           Picture: ""

        }

    }

);


Hope this helps.

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 :)


Saturday, January 29, 2022

Create HTML Table with Border while sending Email using Microsoft Flow

Introduction:

In this Blog, we will see how to send email with Border while Sending email using Microsoft Flow

Implementation Steps:

 

Usually when we send an email with HTML Table Body Microsoft Flow cannot generate Table Border. Below is the Sample Screenshot how the Table will be

 

Microsoft Flow HTML Table With out Border :

 

rampprakash_0-1643394171527.png

 

 

Microsoft Flow HTML Table with Border:

 

rampprakash_1-1643394333251.png

 

How Can we Achieve this?

 

Open/Create Microsoft Flow --> Open Your Email Notification weather it is Outlook or Send Email Notification

 

First Create Data Operation and Create a HTML Table

 

rampprakash_3-1643395307252.png

 

 

Click Code View

 

rampprakash_2-1643395172043.png

 

In the Email Body

 

rampprakash_4-1643395429801.png

 

Create a <table>Pass your Output Value here</table>

 

HTML Code:

 

<head>
<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>
</head>

 

That's it 

Friday, January 7, 2022

Error Handling in Canvas PowerApps with DataVerse Environment using IfError


Introduction:

In this Blog we will see how to Handle error in Canvas PowerApps with DataVerse Environment using IfError


Implementation Steps:

 

Consider a Scenario, we are having 2 tables one is with Account and another with Opportunity

 

How to Implement Restrict in Dataverse Environment. : https://microsoftcrmtechie.blogspot.com/2022/01/restrict-record-deletion-if-child.html

 

While Deleting Account if any Opportunity Contains Data then we need to Restrict in PowerApps.

 

This Restriction will work Perfectly in Dataverse 

rampprakash_0-1641546671931.png

 

In PowerApps Canvas if you tried to delete the system won't throw Error, lets see how to handle that

 

Open Canvas App then Click File then settings 

 

Click Upcoming Features and Toggle On --> Formula-level Error Management

 



 

Now Write below code in Delete Button

 

IfError(Remove([@Accounts], BrowseGallery1.Selected),Notify("Record Contains Child Record"),Notify("Deletion Success"))

 

Thats it :slightly_smiling_face: This will throw error if any error occurs 

 

rampprakash_3-1641547005068.png

 

Wednesday, January 5, 2022

Timer Control in PowerApps


 Introduction: 

In this Blog we will see how to Create and Use PowerApps Timer Control in Dataverse Environment.

 Implementation Steps:

 

1. Navigate to https://make.powerapps.com

 

2. Create a new Solution

 

3. Add an Existing Entity or Add New Entity 

 

4. Create New Field

         --> Timer End date (Date and Time)

         --> Timer Start date ( Date and Time)

         --> Status Field with (In-Progress, Pending, Completed) (Choice)

 

rampprakash_0-1641388281566.png

 

5. Add the Created Fields in the Form

 

rampprakash_1-1641388330415.png

 

6. Now Navigate below Steps

  • Navigate to https://make.powerapps.com
  • Click Gear Icon at the Top  --> Select Advance Settings
  • Select Cuztomization --> Click Customize the system
  • Expand Entities --> Expand the Table where you have created the fields
  • Click Forms --> Open Main Form
  • Click Insert at the Top then Select TIMER

rampprakash_2-1641388545285.png

 

 

7. Enter the Name and Label

rampprakash_3-1641388583367.png

 

  • Failure Time Field --> When Timer Should be Failed
  • Success Condition --> When Timer Need to be Success
  • Failure Condition --> When Timer Need to be Failed
  • Warning Condition --> When Timer Need to be Warning
  • Cancel Condition --> When Timer Need to be Cancelled
  • Pause Condition --> When Timer Need to be Paused

Based on the Attached Imaged I have used my END Date and TIMER STATUS

 

if Status = Pending  (TIMER SHOULD BE : Paused)

 

rampprakash_4-1641388839783.png

 

if Status = In-Progress (TIMER SHOULD BE : Warning)

 

rampprakash_5-1641389392059.png

 

 

 if Status = Completed (TIMER SHOULD BE : Success)

 

rampprakash_6-1641389430655.png

 

 

That's it :slightly_smiling_face:

 

Please find my video for Step by Step Process

 

How to Run Microsoft Flow for Every one Month

Introduction: In this Blog we will see how to Run Microsoft Flow for Every one Month. Implementation Steps:   1. Navigate to  https://make.p...