Forum Discussion
Hi @bcole , Lets assume the documents array you save as documents_array variable. Then you can use below expression in next snap and if you want can make target field as $.(if you want to pass other data then don’t use $)
{
“Document”:{
“Documents”: sl.ensureArray($documents_array)
}
}
If you want to avoid extra mapper, then your can use below
{
“Document”:{
“Documents”: sl.ensureArray(your logic to get documents)
}
}