Upload file Rest API using Logic App

オフライン

I am currently developing a sample project in Azure Logic Apps using the Aras Restful APIs.

However while trying to Execute the vault.UploadFile API I am facing the 500 error message:

The Rest API  Call Details are as follows :

{
    "uri"".../vault.UploadFile?fileId=EB166A9FF4EE47C8A0DA55252CA140CA",
    "method""POST",
    "headers": {
        "Authorization""*sanitized*",
        "Content-Disposition""attachment;filename*=utf-8''Hello.txt",
        "Content-Length""5",
        "Content-Range""bytes 0-4/5",
        "Content-Type""application/octet-stream",
        "transactionid""0c2c787fce70226029d752c0ba372607"
    }, 
    "body""Hello"
}
For now I am trying to upload a simple text file as seen above. I have verified the url as well as run the same in Postman , ARC and fiddler - and I am able to get it working in all the cases except for via Logic Apps .
Please let me know if anyone knows what I am missing here . Thanks
  • Hi beginnerInAras,

    When you are sending your POST request are you including an Authorization (BearerToken) token as well? Anytime you are using REST API it is necessary to first send a POST request to the OAuthserver, then grab that token and pass it as authorization with your actual request. We have a good example of this covered in a couple of blog posts

    Hope this helps!

    Best,

    Nithin