id). Ensure your SQL query returns an array-formatted result.{{id}}. The current element of the iteration will be automatically stored in the $item variable.{{$.step id.element}} to reference the values from the loop variable. For example, if your database query result id is an array of objects containing a userId field and the step id of the Foreach loop step is 2, you can use {{$.2.element}} as the value for your API parameter.