@Shaebert
Let's say you have a URL
https://apps.powerapps.com/play/e/YOUR-APP-ENVIRONMENT-ID/a/YOUR-APP-ID
You can pass the parameter like this:
https://apps.powerapps.com/play/e/YOUR-APP-ENVIRONMENT-ID/a/YOUR-APP-ID?costumerID=15
The user will click the URL to open your app with Form
Two things need to happen.
1. You need to capture the costumerID
2. you need to direct the user Automatically to the Form Screen if it's not the home Screen 🙂
Now, to do the first operation, simple in the App.OnStart, you need to capture this ID
Set(costumerID,Param("costumerID"))
Param is a function that can retrieve specific data from a URL in simple terms.
now, to direct the user to a specific Screen, you need to use the App.StartScreen property.
in this property, you only point the user to a specific screen based on condition, so in your example, it will look like this:
If(!IsBlank(costumerID), FormScreen)
FormScreen should be the name of the screen on which the form is displayed.
Now to pass costumerID to SharePoint using the form. If you have already a column in SharePoint, what will store it:
in the default property of DataCardValue of field, what should Store costumerID use the global variable costumerID
and make the visibility of the whole Data Card false so that user will not see the field.
Now each time the form is filed by a user who accesses it from the URL will contain the costumerID
this method is called Deep linking.
hope it helps