npise
4 years agoNew Contributor II
Constructing post body request
objective is to build the below in mapper
“input”: [
{
“key”: “plan”,
“value”: “ProvisioningPlan”,
“type”: “application/xml”
},
{
“key”: “identityName”,
“value”: “88E2EA18-6C15-E811-8BB4-0017A47705CA”
},
{
“key”:“flow”,
“value”:“AccessRequest”
},
{
“key”: “launcher”,
“value”: “D12D1C44-7D41-EB11-80E8-0017A4774018”
}
]
with the below expression i am unable to reuse keys… any recommendations ?
sl.ensureArray({}.extend({key:‘plan’,value:‘provisioning plan’,type:‘application/xml’}))