File upload and download from Filenet

Ali picture Ali · Jul 7, 2014 · Viewed 9.6k times · Source

We are working on integration Dynamics CRM with Filenet. This requires support of the following two scenarios:

  1. Upload a document in Filenet through web service and retrieve a unique URL for uploaded document from Filenet
  2. Download document through unique URL of Filenet

Development platform is .NET.

Any ideas about the integration mechanism for same? Is there any webservice exposed by Filenet which we can consume for above 1 & 2 requirements?

Answer

Robert vd S picture Robert vd S · Jul 7, 2014

The url's in filenet are always in a fixed format, so that's not difficult.

http://P8_client_server_name/application_name:port/getContent?objectStoreName={84A4A727-37E2-4994-B060-8531FAF75612}&objectType=document&id={559946a8-2007-4096-AC67-773A8540AE6}

So call the getContent page with the parameters opbjectstore name or ID, objecttype and the id of the document.

Here is an article about the format of the url's it should help you for the downloading part.

About the uploading,

Here are some API samples about sorting a document in the content engine. With the Id created were you can construct the url to return to the client.