We were facing some issue when writing code of Navigation in App.StartScreen and App.OnStart of App within PowerApps. It is widely used for the initialization of global variables, prefetching of data into collections, and to determine which screen should be shown first.
By default, the first screen shown when an app starts is the first in the Tree View in Studio. Navigate() function is used to redirect from one screen to another and we can also call the Navigate() function from within App.OnStart.
We were setting it up so that a particular screen should be visible if user logs in and another screen should be visible if Admin logs in. Usually we write the code for navigate() as below.
But as you can see, we faced an error. We couldn’t understand the error as it said ‘invocation of unsupported function’.
We may have written Navigate() function in past, but we should not write Navigate() with version 3.21101 and later like below:
By introducing App.StartScreen, Microsoft going to begin the process of retiring the use of Navigate in App.OnStart.
There is a new feature in Settings that enables Navigate() in App.OnStart. Go to, Settings > Upcoming Fetures > Retired > Enable Navigate functiuon in App.OnStart
For old apps, that make use of Navigate in OnStart, this switch will be On. For new apps, this switch will be off by default but can be turned on.
Hope this helps!
ATM Inspection PowerApp to ease ATM inspection and report generation process.
https://www.inkeysolutions.com/microsoft-power-platform/power-app/atm-inspection
Insert data into Many-to-Many relationship in Dynamics CRM very easily & quickly, using the Drag and drop listbox.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/drag-and-drop-listbox
Comply your Lead, Contact, and User entities of D365 CRM with GDPR compliance using the GDPR add-on.
https://www.inkeysolutions.com/microsoft-dynamics-365/dynamicscrmaddons/gdpr
Create a personal / system view in Dynamics CRM with all the fields on the form/s which you select for a particular entity using the View Creator.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/view-creator
© All Rights Reserved. Inkey IT Solutions Pvt. Ltd. 2024
Leave a Reply