Question
Computershare
US
Last activity: 10 Oct 2023 5:35 EDT
Dynanically generate the query string for a connect-rest rule.
We recently upgraded from 7.x to 8.x and are having issue with one of our connect rest rules.
We have a bunch of different datapages that use the same connect rest rule but with different path and different sets of parameters for the querystring.
Thus we are using the Request Data Transform in the rule to set the resource path to also include the querystring parameter and in 7.x we were able to send that directly to the connect rest rule with no problem.
However with the changes to 8.x connect rest rule, now each parameter must be declared, which would cause us to have to write a separate connect rule for each datapage.
We tried to continue using our methodology but now the IIS server we are contacting is giving us the following error:
Server Error in '*************' Application. A potentially dangerous Request.Path value was detected from the client (?).
Has anyone found a way around this?





Hi @Max Toedtemeier,
In connect rest we are having option to skip resource path parameters and query string parameters. We can add multiple resource path and query string parameters in request data transform based on our requirement will skip parameters in request data transform.
Example 1: without value for resource path and query string parameters:
Example 2: passes some resource as param as empty and some resource as constant:
Hi @Max Toedtemeier,
In connect rest we are having option to skip resource path parameters and query string parameters. We can add multiple resource path and query string parameters in request data transform based on our requirement will skip parameters in request data transform.
Example 1: without value for resource path and query string parameters:
Example 2: passes some resource as param as empty and some resource as constant:
From the both examples we seen we can able to dynmically make decision about resource path and query string parameters.
Thanks,
Dhanasekar Chellamuthu