Monday, November 15, 2021

How to Handle errors in Microsoft Flow (Try/Catch)

 Introduction:

In this blog we will see how to handle errors in Microsoft Flows.

rampprakash_0-1636977733384.png

When we are developing Code in Visual studio, we will use TRY/Catch Block to handle errors. if Try Errored Out it will come to Catch Block. Lets see how to implement this in Microsoft flow

 

Implementation Steps:

 

1. Navigate to https://flow.microsoft.com

 

2. Create a New App or Open an Existing app which is already available

 

3. Search for Scope and add the Scope

 

rampprakash_1-1636977898138.png

 

4. Rename the Scope to TRY

 

5. Add another Scope and Rename it to Catch

 

6. In the Catch Block Click three dots and Select Configure Run After

 

rampprakash_2-1636977971718.png

 

7. Once Clicked you will see multiple options to choose when Catch Block should trigger

 

rampprakash_3-1636978009817.png

a. is successful --> If Try gets Success then Catch should trigger

b. has failed--> If Try gets Failed then Catch should trigger

c. is skipped--> If Try gets Skipped then Catch should trigger

d. has timed out --> If Try gets Timed Out then Catch should trigger

 

Select your respective Options and Click Done and save your flow.

 

That's it :slightly_smiling_face:




Friday, November 12, 2021

Changing Text Field Type to Single Line Multiline and Password

 Introduction: 

 In this blog we will see how to change Text box into Single/Multiline and Password

 Implementation Steps:


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

2. Click on Apps then select New then Add New

3. Select Phone Or Mobile mobile and enter the Name of the App

4. Add the Text Box in the Form

5. Click on the Field and Select Properties and Click Mode and Select Single Line of Text to Show Text in Single Line


 



6. Change the mode to Multiline to enter the text in multiple lines

7. Change the mode to Password to enter the text as Password




That's it. :)








How to Show Dialog or Pop up box in Canvas PowerApps

 Introduction: 

 In this blog we will see how to use Dialog or Popup box in Canvas PowerApps

 Implementation Steps:

 

1. Navigate to https://office.com

 

2. Click On SharePoint and Create a Site if not available else copy the existing Site URL

 

3. Create a List in SharePoint (in My demo i have created TestDemo as SharePoint List) and added two records over there

 

rampprakash_0-1636702398261.png

 

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

 

5. Click Apps

 

6. Click New Button --> Select Canvas App --> Select Phone Mode --> Enter the Name as "Popup/Dialog Demo"

 

7. Once the Page Opened --> Click Data Source --> Search for SharePoint --> Paste the URL which you copied from Point 1 --> Then select the List, once done you can see the list like below in your application

 

rampprakash_1-1636702558044.png

 

8. Click On Insert and Add Vertical Gallery and Select the Items as TestDemo from DataSource

 

9. Add a Trash Icon from the Icon Option by selecting the Gallery

 

rampprakash_1-1636702743411.png

 

10. Add a Rectangle in the PowerApps

 

rampprakash_2-1636702828404.png

 

11. Change Rectangle Fill --> RGBA(0, 0, 0, .5)

 

12. Add Three labels like Below

    a. Are you sure you want to delete the Record?

    b. Yes

    c. No

 

rampprakash_3-1636702947734.png

 

13. Group Rectangle, and Three Labels

 

rampprakash_4-1636702989217.png

 

14. Enable Rule for Group 

 

15. On Start of App 

 

 

Set(enableDialog,false)

 

 

16. Visible Property for Group --> enableDialog

 

17.Label On Select of NO 

 

 

Set(enableDialog,false)

 

 

18. Label On Select of YES

 

 

Remove(TESTDEMO,currentItem);
Set(enableDialog,false)

 

 

19. On Select of Delete Icon in the Gallery

 

 

Set(enableDialog,true);
Set(currentItem,ThisItem);

 

 

That's it :slightly_smiling_face:

 

Video for your Reference , Enjoy watching and Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

 

Tuesday, November 9, 2021

Make All Field Read only MSCRM or Model Driven apps


Introduction:


In this blog we will see how to make all the filed as Read- Only using Javascript in MSCRM/DataVerse environment.



Implementation steps:


Copy the Below Code in your OnLoad Operation to make all the Fields Read Only


function MakeAllFieldReadOnly(){

 Xrm.Page.data.entity.attributes.forEach(

  function (attribute, index) {

      var attributeName = attribute.getName();

          Xrm.Page.getControl(attributeName).setDisabled(false);

  });

}

Monday, November 8, 2021

Comments in Microsoft Flow (Preview)

Introduction: 


In this blog we will see how to add/Edit/Delete or Resolve Comments in Microsoft flow 


Implantation Steps:

 

1. Navigate to https://flow.microsoft.com or based on your organization flow URL needs

 

2. Open or Create a New Flow

 

3. Once the Flow Gets Created

 

rampprakash_0-1636370400746.png

 

4. Click on the Item where you need to add Comments then CLICK Comments(Preview) at the Top

 

rampprakash_1-1636370544695.png

 

5. Then Click On New and enter the Comments

 

rampprakash_3-1636370720719.png

 

 

6. To add a new Comment Again click on the item in the flow then Click new and Add a new Comments

 

rampprakash_4-1636370804031.png

 

7. To Delete comment / Edit Comment or Resolve Click on the Three Dots at the right side to process it

 

rampprakash_5-1636370890784.png

 

That's it :slightly_smiling_face:

Monday, November 1, 2021

Show or Hide TIME component from Date Time in Model Driven Apps


Introduction:

In this blog we will see how to show or hide Time Component using JavaScript in Model Driven Apps/ MSCRM


Implementation Steps:

 

Some time Use want to Show/Hide Time Field Component based on their Requirement

 

rampprakash_0-1635767054619.png

 

To Achieve that we need to write some JavaScript to enable and disabled Component

 

Syntax:

 

formContext.getControl(arg).setShowTime(bool);

 

arg = Field Logical Name

bool = true/false 

 

To Enable time Component:

 

function enableTimeComponent(executionContext){
var formContext = executionContext.getFormContext();
formContext.getControl("FieldLogicalName").setShowTime(true);
}

 

To Disable time Component:

 

function enableTimeComponent(executionContext){
var formContext = executionContext.getFormContext();
formContext.getControl("FieldLogicalName").setShowTime(false);
}

 

That's it 

Thursday, October 28, 2021

PowerApps force sync users from Azure AD to Data Verse Environment.


Introduction:

In this Blog we will see how to Force Sync Users from Azure AD Security Group with Data Verse Environment.


Implementation steps:

 

1. Make Sure the user is have proper License for accessing Microsoft Data verse

 

2. Navigate to https://flow.microsoft.com

 

3. Click Flows

 

4. Click New --> Select Instant Cloud Flow

 

5. Enter the Name "FORCE SYNC USER"

 

6. Create 2 Variables to get Environment ID and Group ID

 

rampprakash_2-1635409833116.png

 

7. Get the Group Members from Azure AD

rampprakash_3-1635409866548.png

 

8. Then Sync the Users with FORCE SYNC USER

 

rampprakash_4-1635409912654.png

 

Thats it :slightly_smiling_face: Click on Test and Pass the Variables (Environment ID and Security Group ID

 

rampprakash_5-1635410012471.png

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