I would like to check whether a queryparam exist or not in request uri.
For example how can i validate a queryparam 'company' exists or not in below request uri using apigee conditional statement ?
http://www.example.com?name=anil&company
PS: One way is to use regular expression, other way is to use javascript policy.
Is it possible to validate this using variable and conditional operators ?
Cheers,
Anil Sagar
Solved! Go to Solution.
@Anil Sagar - request.queryparam.company will give you null if query parameter's value is empty (perhaps a bug in the product).
However you will get the existence of the queryparam using request.queryparams.names. It will give you an array which contains [company]
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |