title: How can I get array parameter value dynamically using groovy in soap UI
body: <p>I have API and lot of parameters there. I am using <code>context</code> to get value of particular parameter into groovy script.</p>
  
  <p>But <code>context</code> returns me <strong>null</strong> for array parameters or parameters which are based on id.</p>
  
  <h2><strong>Success</strong></h2>
  
  <ul>
  <li>context.title</li>
  <li>context.name</li>
  </ul>
  
  <h2><strong>Failed to get value</strong></h2>
  
  <ul>
  <li>context.location[] , context.location[id]</li>
  <li>context.department[], context.department[id]</li>
  </ul>
  
  <p>In API, I pass location and department IDs to get data.</p>
  
  <p>For ex : location[id] = 556d6dDRE666deda5c</p>
  
  <p>So how can I get value of parameters using groovy where parameters are either array or has ids.</p>