Hi Chris,
The following are the request bodies I have used when invoking the vault.CommitTransaction method. Both succeed in creating the file in the vault, but neither triggers the conversion task. The first request associates the newly uploaded file with a Document. The second simply creates the File in the vault.
# JSON data for vault.CommitTransaction request body
# Creates Document with Document File pointing to uploaded file
data = {
'@odata.context': host + '/Server/odata/$metadata#Document/$entity',
'@odata.type': '#Document',
'id': docId,
'item_number': 'DOC-02',
'Document File': [{
'id': docFileId,
'related_id': {
'id': fileId,
'filename': filename
}
}]
}
# JSON data for vault.CommitTransaction request body
# Creates a File in the vault
info = { 'file_version': '1', 'related_id': VAULT_ID }
located = [info]
data = {
'@odata.context': host + '/Server/odata/$metadata#File/$entity',
'@odata.type': '#File',
'id': fileId,
'filename': filename,
'file_size': str(size),
'Located': located
}
If I upload the same file using "Administration > File Handling > Files > New File...", the conversion task is triggered.
Thanks,
Mark