I’m trying to develop a system where users can upload files and have them associated to thier account using some metadata.
To achieve this, i’m using the JS API, along with the following batched funcitons:
createFileAsset
acquireLock
updateFileAssetContent
setMetadata
However, it appears as though the return value of createFileAsset isn’t a very usable format: {3445: "New File Asset (#3445) 'Bats-3.pdf' of type_code 'pdf_file' created successfully"}
This means that i cannot use the obligatory "%" + "results_0_id" + "%" in subsequent batched requests.