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

Friday, July 8, 2022

Revoke Permission for Users to Edit in Dataverse tab

Introduction: 


In this Blog, we will see how to Revoke Permission for Users to Edit in Dataverse Tab.


Implementation Steps:

 

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

 

2. Click Dataverse --> Click Tables

 

rampprakash_0-1657275370571.png

 

3. After selecting tables you will have permission to Edit or Add new Tables or Customize it.

 

Let's see how we can avoid user to Customize here.

 

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

 

2. Click Gear Icon at the Top

 

3. Select Advance Settings --> Select Settings --> Security

 

4. Create a New Security Role or Open an Existing Security Role --> Navigate to Customization Tab and Remove Permission for the Values

 

rampprakash_2-1657275585414.png

 

 

5. Once Done Click Save and Close

 

6. Now Assign this Security Role to User (Make Sure there is no Other Security Roles having More Permissions)

 

7. Now Try Clicking the Dataverse you will get below error.

 

rampprakash_3-1657275675146.png

 

That's it :slightly_smiling_face:

Thursday, July 7, 2022

Download Images from Dataverse Image Column in PowerApps

Introduction:


In this Blog, we will see how to Download Image from Image Field from Dataverse using PowerApps


Implementation Steps:

 

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

 

2. Click Dataverse --> Select Tables

 

rampprakash_0-1657188061210.png

 

3. If you have table Already available Search that Table else create a Table and Open it

 

4. Now Click On Columns then Add a New Table Column with Type as Images

 

rampprakash_1-1657188160095.png

 

 

5. Click Save and add the Images into Respective Form(Click Forms --> Select Main Forms --> Open it --> Click Columns at the Left Side--> Search for the Created Column --> Add it to the form)

 

rampprakash_2-1657188357443.png

 

 

6. Now Open a Record and Store the Images

 

rampprakash_3-1657188427524.png

 

 

PowerApps:

 

Now Lets see how we can download this Images from Canvas PowerAppps

 

1. Copy the Logical Name of Table : In my case it is account (Logical name)

 

2. Copy the Image Field Name : In my case it is crc2a_image (Logical name should be in Lower Case)

 

rampprakash_5-1657188531980.png

 

3. Copy the Account Guid : In my case it is 8baca6c3-6deb-ec11-bb3d-000d3ac9b922 (you can pass dynamically as well)

 

4. Now Click on Apps then Click New Select Canvas and Provide Name and Select the mode as Phone or Tablet

 

rampprakash_6-1657188635106.png

 

 

5. Add a Button into Form and Write below Code

 

Download("https://org*****.crm8.dynamics.com/Image/download.aspx?Entity=account&Attribute=crc2a_image&Id=8baca6c3-6deb-ec11-bb3d-000d3ac9b922")

 

rampprakash_7-1657188813975.png

 

 

6. Change org*** to your Organization URL

 

7. Now Click on Download --> It will Open up a page with Image Loaded

 

rampprakash_8-1657188914562.png

 

 

That's it :slightly_smiling_face:

Thursday, May 19, 2022

Change Radio Button Layout from Vertical to Horizontal in Canvas App

Introduction:


In this Blog we will see how to Change Radio Button layout from Vertical to Horizontal in Canvas App.


Implementation Steps:

 

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

 

2. Click Apps

 

3. Click New Apps --> Select Phone or Tablet Mode

 

4. Input Name for the Apps and Click Done

 

5. Once the Page Loaded --> Click Insert and Radio Button

 

rampprakash_1-1652956743484.png

 

 

6. Once the Radio button added the LAYOUT for the Radio button will show in Vertical Manner

 

rampprakash_0-1652956630954.png

 

7. Now if I want to change it to Horizontal Manner --> We need to Select Layout as Horizontal

 

Change Value From :

 

rampprakash_2-1652956924506.png

 

 

To:

 

rampprakash_3-1652956948065.png

 

 

That's it :slightly_smiling_face:

Wednesday, May 18, 2022

How to Set Model Driven App theme in PowerApps Canvas

Introduction:


In this Blog we will see how to set Model Driven App theme in PowerApps Canvas


Implementation Steps:

 

Model Driven Apps:

 

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

 

2. Click Gear Icon at the Top --> Select Advance Settings 

 

3. Once the Page Loaded --> Click Customization --> Select Theme --> You will see Default Theme ( You can see only one default theme for an Application)

 

COPY THE NAME OF THEME

 

rampprakash_0-1652872015072.png

 

4. Now go to https://make.powerapps.com

 

5. Click App --> And Provide the Name for the App and select Tablet or Phone Mode based on your needs --> In this i have selected Tablet Mode

 

rampprakash_1-1652872425930.png

 

6. Click DataSource --> Select Theme DataSource

 

rampprakash_2-1652872577998.png

 

7. Once the DataSource Added In the On Start of App Paste the below code

 

Set(getThemeValues,LookUp(Themes_1,'Default Theme'='Default Theme (Themes_1)'.Yes));

 

  1. Get the Value from Lookup in Theme with Default Theme as Yes

 

8. Add Multiple Labels in the Form

 

rampprakash_3-1652872738660.png

 

9. Now Based on the Theme we can load the values(getThemeValues)

 

10. Now Add one by one to the LABEL : FILL and Label Text

 

rampprakash_4-1652872838797.png

 

ColorValue(getThemeValues.'Legacy Accent Color')
ColorValue(getThemeValues.'Navigation Bar Fill Color')

 

11. Based on the Above code we can use the color in different places according to Model Driven App

 

Final Output

 

rampprakash_6-1652873257380.png

 

 

That's it :slightly_smiling_face:

 


Wednesday, April 13, 2022

How to Concatenate String in Canvas PowerApps

Introduction:


In this Blog we will see how to Concatenate String in Canvas PowerApps


Implementation Steps:

 

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

 

2. Click Apps --> Click New --> Select Canvas App --> Then Input Canvas Name and Select Tablet or Phone and  Click Ok

 

rampprakash_0-1649846493428.png

 

3. Add a Label Field By selecting Insert 

 

4. Using C# or Any Other Code we can Simply Concatenate the Values like below

  • "Hi" + " Welcome" + " to" + " PowerApps"

5. But in Canvas we need to use it in Different way

 

Lets see how we can Concatenate in Canvas PowerApps

 

Instead of using + we need to use & Operation for Concatenating the String values

 

 

"Hi"&" Welcome"&" to"&" PowerApps"

 

rampprakash_1-1649846837792.png

 

That's it :slightly_smiling_face: 

Monday, April 4, 2022

How to find Difference between two dates in Hours with calculated fields in Model Driven Apps

Introduction:


In this Blog we will see how to find Difference between two dates in Hours with Calculated Fields in Model Driven Apps


Implementation Steps:

 

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

 

2. Click Solutions (if Already Available) else create a new Solution and add New Table or Existing Table

 

3. Create a new Field inside that Table (Start Date)

 

rampprakash_0-1649055496006.png

 

4. Create another field called End Date 

 

rampprakash_1-1649055496009.png

 

5. Save the Table

 

6. Create a Whole Number Field as Calculated

 

rampprakash_2-1649055496013.png

 

7. Click Calculation --> It will save the table and open a Separate Tab.

 

8. Once the Page Opens add following Condition

  •    Start Date Contains Data
  •    End Date Contains Data

9. Add DiffInHours (It is used to find difference between two dates)

 

10. Write below Query in the Action Field

 

DIFFINHOURS(cr2f9_startdate, cr2f9_enddate)

 

rampprakash_0-1649065757537.png

 

 

11. Now add 

  • Start Date
  • End Date
  • Difference in Date 

Fields into the Form.

 

12. Open a new Record and Input Date and Click Save

 

Positive Number : (End Date is Future)

 

rampprakash_1-1649065973474.png

 

 

 

Negative Number : (End Date is Past)

 

rampprakash_2-1649065994935.png

 

 

 

That's it :slightly_smiling_face:

Friday, March 25, 2022

How to validate weather the number is Positive or Negative in Canvas Application

Introduction: 


In this blog we will see how to check weather number is POSTIVE or NEGATIVE in CANVAS APP


Implementation Steps:

 

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

 

2. Click Apps --> Click New --> Select Canvas App --> Choose Tablet/Phone based on your needs --> Enter name and Click Ok

 

3. Add Label and Name it as INPUT NUMBER

 

4. Add Text Box and Change format to NUMBER (Name it as txtnumber)

 

5. Add Submit Button

rampprakash_1-1648220271696.png

 

 

6. On Select of Submit Button Write Below Code

 

If(Value(txtnumber.Text)>0,Notify("Enter Number " & txtnumber.Text & " is Positive",NotificationType.Success),Notify("Enter Number " & txtnumber.Text & " is Negative",NotificationType.Success))

 

Testing:

 

Input Number : 5 and Submit

 

rampprakash_2-1648220437390.png

 

Input Number : -5 and Submit

 

rampprakash_3-1648220463497.png

 

 

That's it :slightly_smiling_face:

 

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...