title: Sending Dynamic query params in mulesoft HTTP Request
body: <p>I have a requirement where I have to send Dynamic query params on demand while sending it http request in mulesoft.</p>
  
  <p>I am writing an expression to handle such scenario</p>
  
  <p>something like this-</p>
  
  <p>if(message.inboundProperties.'http.query.params'.param1 != null)</p>
  
  <p>flowVars.params.put("param1", message.inboundProperties.'http.query.params'.param1);</p>
  
  <p>if(message.inboundProperties.'http.query.params'.param2 != null)</p>
  
  <p>flowVars.params.put("param2", message.inboundProperties.'http.query.params'.param2);</p>
  
  <p>if(message.inboundProperties.'http.query.params'.param3 != null)</p>
  
  <p>flowVars.params.put("param3", message.inboundProperties.'http.query.params'.param3);</p>
  
  <p>//if it is a mandatory</p>
  
  <p>flowVars.params.put("api_key", flowVars.apikey);</p>
  
  <p>Creating hashmap but it failing in expression itself </p>
  
  <p>can anyone help me on this</p>
  
  <p>any leads would be appreciated.</p>