Skip to main content

Hi

 

Using Postman and the API, I need to be able to upload documents to IFS Cloud. 

 

I managed to complete the entire procedure to close the document and assign the corresponding values, but I couldn't insert the physical document.

 

How could I add a PDF to a document already created in IFS, I need to transfer it from Postman to IFSCLOUD.

 

I've done everything but all I need is to attach the PDF file.

 

 

  1. POST:

Create an Original document type.

https://XXX.es/main/ifsapplications/projection/v1/DocumentRevisionHandling.svc/FileUploadPrerequisite

 

{

  "DocClass": "FBC",

  "DocNo": "1000041",

  "DocSheet": "1",

  "DocRev": "A1",

  "DocType": "ORIGINAL"

}

 

Answer:

 

{

{

    "@odata.context": "https://xxx-xxx.es/main/ifsapplications/projection/v1/DocumentRevisionHandling.svc/$metadata#IfsApp.DocumentRevisionHandling.FileUploadPrerequisiteStructure",

    "DocType": "ORIGINAL",

    "FileNo": 1

}

 

 

 

  1. GET

Searching for the file from the PC in a local environment.


https://xxxxx.es/main/ifsapplications/projection/v1/DocumentRevisionHandling.svc/GetFileDataFromPath(FullFilePath='C%3A%5CUsers%5CMi%5CDownloads%5CCry%20(7).pdf')

 

Answer:

 

{

    "@odata.context": "https://XXX.es/main/ifsapplications/projection/v1/DocumentRevisionHandling.svc/$metadata#IfsApp.DocumentRevisionHandling.FilePathDataStruct",

    "FullFileName": "CrystalViewer (7).pdf",

    "FileFolder": "C:\\Users\\M\\Downloads",

    "FileName": "Crys"

}

Try to use our premium API CreateAndImportDocument instead. It has a lot of documentation that you should find via the API Explorer.

 


Reply