Posts

Power Apps Cheat Sheet

Problem Expression Show the current logged in user The User Function Examples User().Email - Shows email address User().FullName - Shows user's name User().Image - Shows user's photo Filter the rows to a certain criteria The Filter expression can filter the rows based on an expression of your choosing. Filter(DataSource, Expresssion) Filter( DataSourceName, Column > 0 ) Filter( DataSourceName, Column > 0, Column2 = "Value" )   Lookup a value in another table or source The lookup function can see the value from a different source based on an expression. Lookup(Source, Condition, ValueToShow) Lookup(DataSourceName, CustomerID = 5, CustomerName)     Create a Global Variable Global variables can be seen on any screen. They can be created when you start an app by selecting the App OnStart event or on any actionable event.   Set(VariableName, value)   Navigate to a new screen Navigation can be done two ways: either go back to the previous...

Patch Function in Canvas app

  1. Create A New Record With Power Apps Patch Function Syntax Patch(Datasource, BaseRecord, NewRecord) Input Employees  Table In SharePoint ID FullName EmployeeNumber HireDate Active 1 Matthew Devaney 1050 05/28/2010 true 2 Alice Lemon 0958 11/03/2015 true 3 David Johnson 0563 08/15/2013 false Code Patch ( Employees , Defaults ( Employees ) , { FullName : "Sarah Green" , EmployeeNumber : 1002 , HireDate : Date ( 2018 , 3 , 14 ) , Active : true } ) Output Employees  Table In SharePoint ID FullName EmployeeNumber HireDate Active 1 Matthew Devaney 1050 05/28/2010 true 2 Alice Lemon 0958 11/03/2015 true 3 David Johnson 0563 08/15/2013 false 4 Sarah Green 1002 03/14/2018 true 2. Update An Existing Record Using Power Apps Patch Function Syntax Patch(Datasource, BaseRecord, ChangeRecord) Input Employees  Table In SharePoint ID FullName EmployeeNumber HireDate Active 1 Matthew Devaney 1050 05/28/2010 true 2 Alice ...