Logo
banner

Blogs

New Alternative of Navigate() function on App.StartScreen and App.OnStart in Canvas apps

, May 5, 2022 4733 Views

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

mm

Inkey

INKEY is your solution partner.
Our focus is to deliver you in-time intelligent innovative solutions ("key") for the problems in hand. Maintaining a quality standard right from the inception of a project is our top most priority.

Our team of talented professionals will execute your projects with dedication and excellence. We take ownership and accountability for the effort that goes into meeting our client’s needs.

Years of experience and proven success of delivering innovative custom solutions.

More posts by

Leave a Reply

Your email address will not be published. Required fields are marked *

The maximum upload file size: 2 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Drop file here

Would you like to digitize your business and put it on the cloud?
Do you need clear, concise reports for your organization?