Deeplink module - Get URL parameters in microflow

1
Hi all,   I'm hoping to use the deeplink module to retrieve query string parameters from a callback to the mendix app.    My deeplink configuration works in that it calls a MF and passes the object as configured however when i select the "Separate GET parameters" checkbox (which i really want to do) and add a string parameter to the url I receive an error when making the same call to the deeplink   http://localhost:8080/link/sharepointaccess/helloworld?code=123456 .... helloworld in the url is a property of an object saved in the application... Am i following the instructions in the documentation correctly? Separate GET parameters (New In 4.2) If GET parameters are included, they will be separated into multiple String parameters for the microflow that will be called. Example: with a URL like "http://appname/link/mfname/stringtext?param=value&other=test", The microflow that is called can receive two String parameters named "param" and "other", that will be filled with the values "value" and "test" respectively.  When creating a deeplink in the GUI, an example URL will be shown for the selected microflow. This property cannot be used in combination with the object type and object attribute properties.  
asked
2 answers
6

Hi Tarig,

If you want to use multiple parameters you have to add them to the deeplink microflow as string parameters. In your example you are using a Registration object, which can never be passed from a deeplink source.

First add the correct parameters, then check your deeplink configuration (run model reflection first). After selecting your updated microflow it should predict how your deeplink has to be formatted.

Also, check your DeepLink.RequestHandlerName. If you use "link/sharepointaccess/" your RequestHandlerName should match this.

Good luck!

 

EDIT: It seems you CAN use an object by providing the object id in your configuration, as Pim suggests. 

answered
4

You can use Registration as a parameter in your microflow chosen in the config but you should supply a unique identifier so the module can retrieve it for you.

See documentation:

Object Type

The fully qualified type of the object which need to be passed to the microflow. If empty, no arguments will be passed to the microflow. For example: MyFirstModule.Product.

Object Attribute

The attribute that will be used by the deeplink to uniquely identify the object that needs to be passed. In case of this value being configured empty, GUIDs will be used. If for example object type is set to 'User', and object attribute to 'Name', you can use links such as http://yourhost/link/showuser/MxAdmin

answered