You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Downloading Attachments

Received Response
edited May 21, 2020 9:38AM in Visual Builder 2 comments


Downloading Attachments from OEC instance


Hi team,

Hope you are all doing well in these times.

Im trying to access attachments in OEC instance via REST API and automatically download them. I called the required API and fetched the attackment Records responses which look like below. And im able to download it too, by prepending the domain URL to the FileUrl obtained from REST response.

The problem is it requires authentication. 

Is there a way to download those attachments without having to sign in to the instance? Can we put the authentication within VBCS itself?

Code Snippet

      "AttachedDocumentId": 300000043913082,
      "LastUpdateDate": "2020-05-20T07:56:44.894+00:00",
      "LastUpdatedBy": "random.admin",
      "DatatypeCode": "FILE",
      "FileName": "201402243709041.pdf",
      "DmFolderPath": null,
      "DmDocumentId": "UCMFA00204124",
      "DmVersionNumber": "172673",
      "Url": null,
      "CategoryName": "MISC",
      "UserName": "Miscellaneous",
      "Uri": null,
      "FileUrl": "/content/conn/FusionAppsContentRepository/uuid/dDocID%3a172673?XFND_SCHEME_ID=1&XFND_CERT_FP=E25CFD07DF72FFBCC6BDB18D9707EF8C9FA9E3E2&XFND_RANDOM=5671967004799272854&XFND_EXPIRES=1590053757525&XFND_SIGNATURE=CkqvpAtT6OGXtQFetIwgcFiC4eeAR7RtQ2OZTeeCr~VNiU1aF-soLNEt3pE6Dqr47kBI6o0riqF4UvXwTGkQzq1sIvYy71xdypynIxThlYFrIZ0L~wPKi8uEl72eKw-eJx52ZNUQUQ2H~BeE59egcYr7PuiyhynfwkHWHy7nKl1H-BoST8XVQZHGYb24fGFV6I7M~Xhm2BDwaD3S7qQWjp22knueZkOACOJ6UUBYqt9JUJI1EXQe~M-BBvvP3JlpxtLi5PyJZRXJ6~0JWDZ90dWhVg2BeQ8w3tHq3nX2N6i5NJUR8DmlitU2uWh0KtB-ymgsrEKsNe4QonbifQCJHg__&Id=172673&download",
      "UploadedText": null,

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!