Create an integration map
post
/api/boss/data/objects/ora/cxSalesCommon/integration/v1/$en/integrationMaps
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : oraCxSalesCommonIntegration.IntegrationMapping_post-item
Match All
Show Source
-
object
Integration Map
Title:
Integration MapIntegration maps describe the attribute mappings between objects in Sales and objects in other Oracle applications. The integration process uses these mappings to determine the attributes that need to be synchronized from Sales to the other applications.
Nested Schema : Integration Map
Type:
objectTitle:
Integration MapIntegration maps describe the attribute mappings between objects in Sales and objects in other Oracle applications. The integration process uses these mappings to determine the attributes that need to be synchronized from Sales to the other applications.
Show Source
-
activeFlag: boolean
Title:
Active FlagIndicates that the integration map is active. -
createdBy: string
Title:
Created ByRead Only:trueThe user who created the integration map record. -
description: string
Title:
Map DescriptionThe description of the integration map. -
integrationMapId: string
(big-integer)
Title:
Integration Map IdentifierThe unique identifier of the integration map. -
integrationMapNumber: string
Title:
Integration Map NumberThe public unique identifier of the integration map. -
integrationSpec: string
(long-text)
Title:
Map Transform SpecificationThe transform specifications for the integration map. -
lockedFlag: boolean
Title:
Locked FlagIndicates that the integration map is locked and can't be edited or cloned by a user. -
name: string
Title:
Map NameThe name of the integration map. -
seededFlag: boolean
Title:
Seeded FlagIndicates whether the integration map was seeded by Oracle. -
sourceApplication: string
Title:
Source ApplicationRead Only:trueThe source application for the integration. -
sourceObject: string
Title:
Source ObjectThe source object of the integration. -
timeCreated: string
(date-time)
Title:
Time CreatedRead Only:trueThe date and time when the integration map was created. -
timeUpdated: string
(date-time)
Title:
Time UpdatedRead Only:trueThe date and time when the integration map was last updated. -
updatedBy: string
Title:
Updated ByRead Only:trueThe user who last updated the integration map record.
Response
Default Response
no content
Examples
The following example shows how to create an integration map by submitting a POST request on the REST resource.
cURL Command
curl -X POST --location 'https://servername.fa.us2.oraclecloud.com/api/boss/data/objects/ora/cxSalesCommon/integration/v1/$en/integrationMaps' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"name": "Integrate Products 299",
"description": "Synchronize product create or update in Sales with CPQ.",
"integrationMapNumber": "DATAINTG-299",
"sourceObject": "Product",
"seededFlag": true,
"integrationSpec": "{\"BeforeHandler\":\"com.oracle.osc.aspects.consumer.product.BeforeHandlerImpl\",\"MapTransform\":{\"Transform\":\"{\\n$.Product.ProductTranslation[*].Description:$.upsertParts.partSetups.items[*].translations.items[*].description\\n$.lookup($.Product.ProductTranslation[*].Language,'\''CPQ_LANGUAGES'\''):$.upsertParts.partSetups.items[*].translations.items[*].language.languageCode\\n$.Product.Name:$.upsertParts.partSetups.items[*].partDisplayNumber\\n$.Product.InventoryItemId:$.upsertParts.partSetups.items[*].partnerPartId\\n$.Product.OrganizationId:$.upsertParts.partSetups.items[*].partnerOrganizationId\\n$.Product.DefaultPeriodicityCode:$.upsertParts.partSetups.items[*].pricePeriod\\n$.Product.DefaultPeriods:$.upsertParts.partSetups.items[*].numberOfPricePeriods\\n$.Product.DefaultPriceTypeCode:$.upsertParts.partSetups.items[*].priceType\\n$.Product.ItemNumber:$.upsertParts.partSetups.items[*].partNumber\\n$.Product.DefaultUOMCode:$.upsertParts.partSetups.items[*].defaultUOMCode\\n$.Product.ProductTypeCode:$.upsertParts.partSetups.items[*].salesProductType\\n$.Product.EligibleToSell:$.upsertParts.partSetups.items[*].eligibleToSell\\n$.Product.CSSEnabled:$.upsertParts.partSetups.items[*].enableSelfService\\n$.Product.EligibleForService:$.upsertParts.partSetups.items[*].eligibleForService\\n$.Product.ProcessingDays:$.upsertParts.partSetups.items[*].leadTime\\n$.\\\"1\\\":$.upsertParts.partSetups.items[*].directBuy.lookupCode\\n}\",\"Invoke\":{\"ConnectionReference\":\"ORA_CPQ_APP\",\"EndPointURI\":\"\/rest\/v14\/partSetups\/actions\/upsertParts\",\"EndPointAction\":\"POST\",\"EndPointHeaders\":\"\"}},\"IntegrationStepName\":\"IntegrateProduct\"}"
}'
Example of Request Body
The following example shows the contents of the request body in JSON format.
{
"name": "Integrate Products 231",
"description": "Synchronize product create or update in Sales with CPQ.",
"integrationMapNumber": "DATAINTG-101",
"sourceObject": "Product",
"seededFlag": true,
"integrationSpec": "{\"BeforeHandler\":\"com.oracle.osc.aspects.consumer.product.BeforeHandlerImpl\",\"MapTransform\":{\"Transform\":\"{\\n$.Product.ProductTranslation[*].Description:$.upsertParts.partSetups.items[*].translations.items[*].description\\n$.lookup($.Product.ProductTranslation[*].Language,'CPQ_LANGUAGES'):$.upsertParts.partSetups.items[*].translations.items[*].language.languageCode\\n$.Product.Name:$.upsertParts.partSetups.items[*].partDisplayNumber\\n$.Product.InventoryItemId:$.upsertParts.partSetups.items[*].partnerPartId\\n$.Product.OrganizationId:$.upsertParts.partSetups.items[*].partnerOrganizationId\\n$.Product.DefaultPeriodicityCode:$.upsertParts.partSetups.items[*].pricePeriod\\n$.Product.DefaultPeriods:$.upsertParts.partSetups.items[*].numberOfPricePeriods\\n$.Product.DefaultPriceTypeCode:$.upsertParts.partSetups.items[*].priceType\\n$.Product.ItemNumber:$.upsertParts.partSetups.items[*].partNumber\\n$.Product.DefaultUOMCode:$.upsertParts.partSetups.items[*].defaultUOMCode\\n$.Product.ProductTypeCode:$.upsertParts.partSetups.items[*].salesProductType\\n$.Product.EligibleToSell:$.upsertParts.partSetups.items[*].eligibleToSell\\n$.Product.CSSEnabled:$.upsertParts.partSetups.items[*].enableSelfService\\n$.Product.EligibleForService:$.upsertParts.partSetups.items[*].eligibleForService\\n$.Product.ProcessingDays:$.upsertParts.partSetups.items[*].leadTime\\n$.\\\"1\\\":$.upsertParts.partSetups.items[*].directBuy.lookupCode\\n}\",\"Invoke\":{\"ConnectionReference\":\"ORA_CPQ_APP\",\"EndPointURI\":\"\/rest\/v14\/partSetups\/actions\/upsertParts\",\"EndPointAction\":\"POST\",\"EndPointHeaders\":\"\"}},\"IntegrationStepName\":\"IntegrateProduct\"}"
}
Response: 201 Created