How to save attachment on the document in the batch

Question:

How to save the attachment on the document in the batch?

Solution:

You can use the settings below in JSON format to save the attachment to the batch such as:

OpenTask:

{
    "MethodName""OpenTask",
    "Params": {   
    "sessionId"559482858,    
    "taskId"178376836    
    }
}

SaveAttachment:

{
    "MethodName""SaveAttachment",
    "Params": {
        "sessionId"559482858,
        "type": 9,
        "objectId": 1,
        "batchId"10623097,     
        "projectId"195,  
        "file": {
            "Name""banattachment.pdf",
            "Bytes""based 64 string"
        }
    }
}

where

sessionId: is the open session

type: 9 for document, 10 for page, 11 for batch

objectId: enter the documentId if you want to save to document

batchId: id of the batch

file: file in based64string

 

CloseTask:

{
    "MethodName""CloseTask",
    "Params": {   
    "sessionId"559482858,    
    "taskId"178376836,
    "stageType"500
    }
}

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.