Method CreateImportTemplate
CreateImportTemplate(String, ImportTemplateContract)
Create an import template
Declaration
string CreateImportTemplate(string connectionId, ImportTemplateContract importTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
ImportTemplateContract | importTemplate | ImportTemplate to create |
Returns
Type | Description |
---|---|
System.String | The created import template id |
Examples
POST http://YourServerName/InfoShare/Json/Common/CreateImportTemplate
Example for create a import template.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"importTemplate": {
"Name": {
"Values": [{
"Text": "test",
"Culture": "de" }, {
"Text": "test",
"Culture": "en" }] },
"PropertyPageTemplateId": "04be9b33-6ae0-e911-a94a-00155d290a08",
"ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
"InfoStoreId": "e46bc061-b7cf-e911-a939-00155d290a08",
"SignatureProfileId": "a5faddc0-7fd0-e911-a93a-00155d290a08",
"LifeCycleId": "f90cd545-6cd0-e911-a93a-00155d290a08",
"StartProcessAfterImport": true,
"ProcessTemplateId": "24a927d1-21d2-e911-a93c-00155d290a08",
"CanChangeProperties": true,
"CanChangeFolders": true }
}
Response:
{
"CreateImportTemplateResult": "3a2cfae8-6ae0-e911-a94a-00155d290a08"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | Object with id {id} already exists (10078) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |