FileNet P8 Connector upload examples
The Datacap Connector for IBM® Content Manager Upload actions configure the connection between the Datacap application and the IBM Content Manager repository.
You can use these actions to upload the following items and their associated index
values from Datacap into Content Engine:- A single page document
- An image that contains multiple pages

The examples in the following tables describe the sequence in which you must add the actions to the Export To P8 ruleset for the upload scenarios.
Upload a single page document
| Action | DCO object![]() |
DCO event![]() |
Description |
|---|---|---|---|
|
|||
| FNP8_SetURL("http://MyServer:9080/wsd/FNCEWS40MTOM") | Batch | Open | Set the URL for the FileNet® P8 web server. |
| FNP8_Login("admin,password") | Batch | Open | Provide the Content Engine user login credentials: admin and password. |
|
|||
| FNP8_SetTargetClassID("ObjectStore") | Document | Open | Set the top-level repository type on Content Engine to ObjectStore. |
| FNP8_SetTargetObjectID("AP_ObjectStore") | Document | Open | Specify the name of the object store in which to store the document as AP_ObjectStore. |
| FNP8_SetDestinationFolder("\TravelDocs") | Document | Open | Identify the folder into which the document is uploaded in Content Engine as \TravelDocs. |
| FNP8_SetLocale("en_US") | Document | Open | Specify en_us as the locale used by the IBM FileNet P8 web service. |
|
|||
| FNP8_SetDocTitle("@ID") | Page | Close | Set the title of the P8 document to be the page's ID, such as TM000001. |
| FNP8_SetDocType("TIF") | Page | Close | Set the type property for the page to TIF. |
|
|||
| FNP8_Upload() | Document | Close | Upload the image file for the page to the previously specified destination folder on Content Engine. |
Upload a multiple page document
| Action | DCO object![]() |
DCO event![]() |
Description |
|---|---|---|---|
|
|||
| FNP8_SetURL("http://MyServer:9080/wsd/FNCEWS40MTOM") | Batch | Open | Establish the URL for the FileNet P8 web service. |
| FNP8_Login("admin,password") | Batch | Open | Provide the Content Engine user login credentials: admin and password. |
|
|||
| FNP8_SetTargetClassID("ObjectStore") | Document | Open | Set the top-level repository type on Content Engine to ObjectStore. |
| FNP8_SetTargetObjectID("AP_ObjectStore") | Document | Open | Specify the name of the object store in which to store the document as AP_ObjectStore. |
| FNP8_SetDestinationFolder("\TravelDocs") | Document | Open | Identify the folder into which the document is uploaded in Content Engine as \TravelDocs. |
| FNP8_SetLocale("en_US") | Document | Open | Specify the language to use on the IBM FileNet P8 Web Service. For example, enter en_US if you are using US English on the user interface. |
|
|||
| FNP8_SetDocClassID("Document") | Page | Close | Set the FileNet Document Class ID for the page to Document. |
| FNP8_SetProperty("IndexValue1, \IndexField1") | Page | Close | Set the IndexValue1 property value of the P8 document to the value of the field that is named IndexField1 on this page. |
|
|||
| FNP8_Upload() | Document | Close | Upload the multiple page image file for this document to the specified destination folder on Content Engine. |