Skip to main content
Solved

Insert a PDF file via API from Postman

  • April 14, 2025
  • 1 reply
  • 38 views

Forum|alt.badge.img+5

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"

}

Best answer by Mathias Dahl

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

 

View original
Did this topic help you find an answer to your question?

1 reply

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2875 replies
  • Answer
  • April 23, 2025

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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings