Hi there,
I have an app whereby I need to navigate users to different screens based on their Office365User department.
In a Dataverse table, all of these O365 department names have been entered into one column, with a corresponding column being their top-level divison.
I want some formula so that, OnSelect of a button, the user is navigated to a certain screen like below.
Let's say the user's 365 department is, say, "Shipping" (obtained from Office365Users.MyProfile().department), lookup to the dataverse table for 'Shipping' in the Name column, and pull back the corresponding row's entry from the Division column which could be "Logistics". THEN, if this result is "Logistics", navigate to X screen.
I realise this could be a long piece of code, as I will need to expand it for all the departments and divisions.
Thanks, K