I have created a canvas powerapp with multiple screens. Each screen has a form connected to a SharePoint List data source, and all of the forms connect to the same SP list. I have a submit button on the last app screen that onselect patches all of the forms into the data source and generates a url with a parameter called ReqID.
I am trying to get a deep/direct link to work so that I can send the record's custom url in an approval flow. When the url is accessed, I want it to take a user to the app and autopopulate the form fields with data from the specified record. To do that, I have set the app onstart to be the below:
Set(
varReqID,
Value(Param("ReqID"))
);
If (
varReqID <> 0,
Set(
varRecord,
LookUp(
Onboarding,
ID = varReqID
)
)
)
I have also set the item of the various forms to be varRecord which should do a lookup and populate the forms. I have tried lookup and filter but it does not work. I also tried setting the datacard defaults to do the lookup, but with all options I am unable to get the forms to show the existing data - everything defaults to blank like a new form.
What am I missing here? Any help is appreciated - I am a powerapps novice and have been able to figure out most things by watching videos and reading community articles, but this one has me completely stumped.