Which function should you use?

Posted by: Pdfprep Category: PL-400 Tags: , ,

A bank uses a Common Data Service solution to manage clients.

Bank representatives perform client credit checks while the client is present. Credit checks may take up to five minutes to complete.

Bank policy dictates that the bank representative’s app must stay blocked until credit checks are complete.

You need to display a model-driven app while credit checks run to ask the bank representative and client to wait for the credit check to complete.

Which function should you use?
A . Xrm.Navigation.openWebResource("prefix.myPoliteMessage.html")
B . Xrm.Navigation.openAlertDialog(myPoliteMessage)
C . Xrm.Utility.openWebResource("prefix_myPoliteMessage.html")
D . Xrm.Utility.showProgressIndicator(myPoliteMessage)

Answer: D

Explanation:

showProgressIndicator displays a progress dialog with the specified message.

Any subsequent call to this method will update the displayed message in the existing progress dialog with the message specified in the latest method call.

The progress dialog blocks the UI until it is closed using the closeProgressIndicator method. So, you must use this method with caution.

Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-utility/showprogressindicator

Leave a Reply

Your email address will not be published.