You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen. Which formula should you use?

QuestionsCategory: PL-100You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen. Which formula should you use?
Admin Staff asked 4 months ago
You need to set the value for a global variable named RunningTotal to 5 and navigate to the previous screen named MainScreen.
Which formula should you use?

A. UpdateContext( { RunningTotal: 5 } ); Navigate( MainScreen, ScreenTransition.Cover, RunningTotal );

B. If( Value(TextBox1.Text) >= 0, (Set( RunningTotal, 5); Back();), Color.Green )

C. UpdateContext( { RunningTotal:5 } ); Back()

D. Set( RunningTotal, 5 ); Back();








 

Suggested Answer: D

You set the value of the global variable with the Set function. Set( MyVar, 1 ) sets the global variable MyVar to a value of 1.
Use the Back and Navigate function to change which screen is displayed.
Reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-variables
 https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

This question is in PL-100 Microsoft Power Platform App Maker Exam
For getting Microsoft Certified: Power Platform App Maker Associate Certificate





Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.