I'm following the MS instructions to Create a Canvas app with deep linking.
I'm struggling a little with understanding the actual logic which is leading to struggles translating some of the insturctions.
I have successfully done everything up to the point of modifying the App Onstart and StartScreen properties.
My challenge occurs with the step to modify the OnVisible property of the details page.
Instructed command is: If(Not(IsBlank(accountId)), UpdateContext({accountVal:LookUp(Accounts, Account = GUID(accountId))}))
I have modified to:
If(Not(IsBlank(checklistId)), UpdateContext({positionVal:LookUp('IBC Checklists', ID = GUID(checklistId))}));
That's producing an error and telling me that GUIDs can only be compared to GUIDs.
Can someone help me understand where I've gone wrong? I know it's in the LookUp but I can't figure out what I should be comparing to what.
There is a little difference in my app since it's not just a display page of the Checklists data. There are a bunch of records related to the Checklist in a Checklist Items list. I want the user to land on the Items page based on the Checklist passed through.
positionVal is being set and works correctly through normal navigation. It's set when clicking the item in the Checklists gallery and results in the correct data being displayed on the Items page.
That works. I end up with a 'real' data value in the checklistID parameter but it's meaningless. I'll publish later today and verify it works but your proposed change eliminates my error. Thank you.
Hi @DCHammer,
The Accounts Dataverse table condition expects a GUID as comparison value - which is why the GUID() function was used. I suspect IBC Checklists to be a SharePoint list? - here you will have to compare the ID field (default SP column) to a number:
//Option 1
LookUp('IBC Checklists', ID = checklistId)
//Option 2
LookUp('IBC Checklists', ID = Value(checklistId))
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
WarrenBelz
146,535
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,908
Most Valuable Professional