Docsity

PL 400 Power Platform Developer Associate, Exams of Advanced Education

Toggle sidebar
bg1
PL 400 Power Platform Developer Associate
Imperative Development - Focus is on how to achieve the goal (Using your own code, make
it exactly how you want it), fully customizable
Declarative Development - Focus is on getting the result (using another service, you have to
work with what you got) Like using a built-in function, it may not be fully customizable
3 Types of variables in PowerApps - Global variables
Context variables
Collections
Gobal Variables - Most traditional, use Set( ) to create and set its value. Can reference from
anywhere in your app.
Context Variables - Only available on the screen where you create it using the
UpdateContext( ) function. Allows you to use the same variable name on multiple screens,
but maintain the value separately. Like a local variable.
Collections - Special type of variable for storing a table of data. Like global variables, they can
be used throughout your app using
Collect( ) or ClearCollect( )
Getting a user's name - "Welcome " & User().FullName - Displays a string titled 'Welcome'
and queries AD for the user's DisplayName. If you repeatedly did this for every screen, it
constantly queries AD. You should set a global variable instead:
Set(varUserDisplayName, User( ).FullName) OnStart of the screen and then change the label
to:
"Welcome " & varUserDisplayName
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download PL 400 Power Platform Developer Associate and more Exams Advanced Education in PDF only on Docsity!

PL 400 Power Platform Developer Associate Imperative Development - Focus is on how to achieve the goal (Using your own code, make it exactly how you want it), fully customizable Declarative Development - Focus is on getting the result (using another service, you have to work with what you got) Like using a built-in function, it may not be fully customizable 3 Types of variables in PowerApps - Global variables Context variables Collections Gobal Variables - Most traditional, use Set( ) to create and set its value. Can reference from anywhere in your app. Context Variables - Only available on the screen where you create it using the UpdateContext( ) function. Allows you to use the same variable name on multiple screens, but maintain the value separately. Like a local variable. Collections - Special type of variable for storing a table of data. Like global variables, they can be used throughout your app using Collect( ) or ClearCollect( ) Getting a user's name - "Welcome " & User().FullName - Displays a string titled 'Welcome' and queries AD for the user's DisplayName. If you repeatedly did this for every screen, it constantly queries AD. You should set a global variable instead: Set(varUserDisplayName, User( ).FullName) OnStart of the screen and then change the label to: "Welcome " & varUserDisplayName

Tracking status in a variable - CountRows(Filter(InvoiceEntity, CustomerNumber = ThisCustomersNumber And Status = "Outstanding")) > 3 Warning icon that displays only if the customer has more than 3 outstanding invoices. This can be repetitive, so instead: Set(varOustandingExceeded, CountRows(Filter(InvoiceEntity, CustomerNumber = ThisCustomersNumber And Status = "Outstanding")) > 3) Now change the visible property to the variable. Implement a pop-up box when using a contextual variable - UpdateContext({varShowPopUp: true}) for the OnSelect property of a button. Then, set the visibility property to varShowPopUp. Benefit is that you can also declare more than one variable at a time: UpdateContext({varCount: 1, varActive: true, varName: User().FullName}) Purpose of using collections - Optimize performance by reducing calls to the same table in a data source. To store a copy of the Projects table from your data source into a collection called collectProjects, use this formula: Collect(collectProjects, Projects) Considerations when using collections - Not delegable - By default, only the first 500 records are retrieved/stored. Collections are not linked to data source after creation - This means that changes to the data in the collection do not automatically save to the data source. Collections are temporary - When you close the app, it clears out the collections so you will need to write data to a source before closing. Dynamic collections - You can create collections with your own data instead of retrieving through a source:

  1. Which control do you use to reference a context variable on another screen? A Label control A Form control Any control type that supports variables Context variables are only available from the screen they were created on - Context variables are only available from the screen they were created on
  2. How can Global variables be used to enhance performance? They cannot, they slow down the system By increasing the cache rate to 1000 By storing information to be referenced throughout your app By caching data for a closed app - By storing information to be referenced throughout your app CountRows - Used to count the number of rows (records) in a table. Concat - You cant display a record in a label so you need to change those records into a comma-separated list of data. Split( ) also works here ForAll - Dynamic function that allows you to run a formula once for each record in a table while referencing all of the data in the current record. Like a FOR loop in C++ Count - Counts the number of records that contain a number in a single-column table CountIf - Counts the number of records in a table that are true for a logical formula. Formula can reference columns of the table CountRows - Counts the number of records in a table

CountA - Counts the number of records that aren't blank in a single-column table. Includes empty text ("") in the count. Average - Calculates the average, or arithmetic mean, of its arguments Max - Finds the maximum value Min - Finds the minimum value Sum - Calculates the sum of its arguments StdevP - Calculates the standard deviation of its arguments VarP - Calculates the variance of its arguments ForAll Features - Can include functions that take action, such as modifying records of a data source with the Patch and Collect functions. You can't modify the table that is subjected to the ForAll function. The formula can call methods on connections You can perform multiple actions using ;

  1. When using functions that process Tables of data, the table must come from? Unfiltered data sources Any data source but not collections Single column tables only The functions accept any table. The table might come from a tabular data source, a collection, or a Table function. - The functions accept any table. The table might come from a tabular data source, a collection, or a Table function.

Patch(Accounts, ThisItem, {Category: Category.'Preferred Customer'})

  1. What Power Fx function do you use to get a table of possible values for a choice column? Select( ) Choices( ) LookUp( ) None, you should manually build the table - Choices( )
  2. What isn't a valid type of a list of values for a choice or choices column? Private choice Global choice Local choice - Private choice
  3. If you want to clear the existing stored value, what would you set the value of a choice column to when using the Patch() function? Blank( ) Empty( ) IsBlank( ) Reset( ) - Blank( ) Remove( ) - Function used to remove or delete records from the data source RemoveIf( ) - Function used to remove or delete records from the data source based on a condition RemoveIf(CustomerOrders, Status = "Expired") Can also be used to delete all records from a data source Clear( ) - Function used to remove all the records from a collection

Use Patch( ) to create a new record - Include name of data source to edit Defaults( ) returns a record that contains the default values for the data source. Include the columns you want to populate in the new record. Specify the name of the column to update followed by the value to write to that column. Patch(CustomerOrders, Defaults(CustomerOrders), {Region: "Americas", Country: "Canada"}) Use Patch( ) to edit a record - Include name of data source to use The record you want to edit in the data source (Most common way is to use LookUp( ) to narrow) Include the changes you want to make Patch(CustomerOrders, LookUP(CustomerOrders, ID = 1), {Region: "Asia", Country: "China"}) Update columns with Patch ( ) Tips - Make sure you update all required columns from your data source You can update one or many columns Make sure your column names are spelled and capitalized correctly (Case-sensitive) Make sure to write the correct data type (If int, don't write string) Patch(CustomerOrders, Default(CustomerOrders), {Status: "Pending"}) - Creates a new record and sets the status column to the string value of "Pending" Set(varStatus, "Under Review") Patch(CustomerOrders, Default(CustomerOrders), {Status: varStatus}) - Stores the string "Under Review" in a variable named varStatus Creates a new record and sets the status to the string value "Under Review" Patch(CustomerOrders, Default(CustomerOrders), {Status: Dropdown1.Selected.Value}) - Creates a new record and sets the status column to the value of the selected item in the drop-down box

Power Apps is a flexible platform that allows you to build your own mass deletion functionality as required by your business needs. - Power Apps is a flexible platform that allows you to build your own mass deletion functionality as required by your business needs.

  1. What Power Fx function do you use to get a table of possible values for a lookup column? Select() Choices() LookUp None, you should manually build the table. - Choices()
  2. What is not a valid Dataverse relationship type? One-to-one One-to-many Many-to-many Many-to-one - One-to-one
  3. You want related rows deleted when the primary row is deleted. In that scenario, what would you set the value of a relationship behavior type to? Parental None Referential Remove Link - Parental Relational data - A group of database tables that is connected or linked by a defined relationship that ties the information together. For example, a customer table and an order table. Many customers can have one or many orders.
  1. What are commonly used functions in Power Apps to connect related data sources not in Microsoft Dataverse for apps? Parent and Child Relate and LookUp Filter and Search Filter and LookUp - Filter and LookUp
  2. What is important to remember when using a LookUp function to query for additional information? Each LookUp function creates a new connection to the data source, which you should evaluate to avoid performance concerns. LookUp automatically caches data calls to reduce round trips. LookUp isn't used to query additional information. LookUp only works after configuring the Filter settings. - Each LookUp function creates a new connection to the data source, which you should evaluate to avoid performance concerns.
  3. Dataverse has built-in relationship functionality, to take advantage of it you need to do which of the following? Nothing, Dataverse automatically determines your data relationships. Dataverse isn't used for relational data. Create the relationship for the table in the Data section of Power Apps Studio. Create the relationship at the tenant level for Microsoft Power Platform. - Create the relationship for the table in the Data section of Power Apps Studio. Delegation - Helps PowerApps work better with data sources by reducing how much data gets moved around. PowerApps delegates the data source to do the processing work. The data source needs to be delegation-friendly. Seach( ) - Function to search records from a data source. It is not delegable, meaning PowerApps has to handle the records itself. Default limit is 500 records.

A) Adjust the row limit from 500 to 2000 records and then ignore the warning. B) Determine if the limited returned data causes issues for the functionality of your app and design your app as appropriate. C) Ignore it, warnings aren't significant and the user knows how to deal with the warning. D) Try a different function because Power Apps doesn't run if there are warnings. - Determine if the limited returned data causes issues for the functionality of your app and design your app as appropriate. When combining delegable and non-delegable functions in a formula what happens? A) The data is only limited for the non-delegable portion, which in no way affects the delegable functions. B) You can't combine delegable and non-delegable functions in the same formula. C) Power Apps generates errors only if the app has more than 2000 records. D) The delegable functions might become non-delegable reducing the amount of data returned by the formula. - The delegable functions might become non-delegable reducing the amount of data returned by the formula. Use refresh sparignly - The refresh function is great for showing the latest data in your app but when submitting a form and then going back to a gallery control, powerapps already does this for you. ClearCollect to improve data callls - Use this function to reduce the number of calls to your app so that OnStart, you call the data and then store it then use that throughout the app. Collect isnt delegable, only returns the first 500 records. Use the Concurrent function to reduce the number of collect calls - When calling 3 clearCollects in a row, it has to process each one at a time, instead, use Concurrent

Concurrent( ClearCollect(colDepartmentList, Filter(DepartmentList, Status = "Active")), ClearCollect(colCompanyList, CompanyList), ClearCollect(colRegions, RegionList) ) Preview Features - Features that are well-tested and close to being released. Experimental Features - Features that might change, break, or disappear at any time. They are off by default. OnStart vs OnVisible - OnStart - App-level property. Formulas are run once when the app starts and must run before the app fully opens. OnVisible - Per-screen property. Formulas are run every time a user navigates to the screen. Timer - Can be used to capture how long your formula takes to run.