batchRequest doesn’t work when using %results_0_0_id% for example.
The code from Squiz’s own manual (see below) produces the following error, substituting a real asset ID for the getChildren function in the first array.
js_api.batchRequest({
"functions":{
"0":{
"function":"getChildren",
"args":{
"asset_id":"100",
"levels":1,
"type_codes":"page_standard",
"get_attributes":0
},
"blocking":1
},
"1":{
"function":"setAttribute",
"args":{
"asset_id":"%results_0_0_id%",
"attr_name":"short_name",
"attr_val":"new short name"
}
}
},
"dataCallback":customDataCallbackFunc
});
Any ideas @Bart? I’ve also got this one open too.