TMFTMForumProductSpecificationRequestTransform

This Data Mapper is used in the TMFTMForumCreateProductSpecification IP.

Input JSON 

1{
2"productSpecCharacteristic": [
3{
4"@baseType": "",
5"@type": "ProductSpecificationCharacteristic",
6"configurable": true,
7"description": "The total Number of Ports for this product",
8"isUnique": true,
9"maxCardinality": 1,
10"minCardinality": 1,
11"name": "Number of Ports",
12"productSpecCharRelationship": [
13{
14"@baseType": "",
15"@type": "ProductSpecificationCharacteristicRelationship",
16"href": "https://mycsp.com:8080/tmf-api/productCatalogManagement/v4/productSpecification/43",
17"id": "43",
18"name": "Bandwidth",
19"relationshipType": "Dependency",
20"validFor": {
21"startDateTime": "2020-09-23T16:42:23-04:00"
22}
23}
24],
25"productSpecCharacteristicValue": [
26{
27"isDefault": true,
28"validFor": {
29"endDateTime": "2022-11-24T00:00:00Z",
30"startDateTime": "2020-09-23T00:00:00Z"
31},
32"value": 8,
33"valueType": "number"
34}
35],
36"validFor": {
37"startDateTime": "2020-09-23T16:42:23.0Z"
38},
39"valueType": "number"
40}
41]
42}

Output JSON 

1{
2  ""relatedParty"": [
3    {
4      ""SObjectField"": ""vlocity_cmt__VendorAccountId__c"",
5      ""SObject"": ""Account""
6    }
7  ],
8  ""vlocity_cmt__LifecycleStatus__c"": ""Draft"",
9  ""vlocity_cmt__IsOrderable__c"": false,
10  ""attributeAssignments"": [
11    {
12      ""vlocity_cmt__EffectiveFromDate__c"": 1600879343000,
13      ""attributes"": [
14        {
15          ""valueType"": ""number"",
16          ""value"": 8,
17          ""isDefault"": true,
18          ""vlocity_cmt__EffectiveUntilDate__c"": ""2022-11-24T00:00:00Z"",
19          ""vlocity_cmt__EffectiveFromDate__c"": ""2020-09-23T00:00:00Z""
20        }
21      ],
22      ""Name"": ""Number of Ports"",
23      ""vlocity_cmt__ValueType__c"": ""number"",
24      ""vlocity_cmt__IsConfigurable__c"": true,
25      ""vlocity_cmt__Description__c"": ""The total Number of Ports for this product""
26    }
27  ],
28  ""isActive"": false,
29  ""vlocity_cmt__Status__c"": ""Draft"",
30  ""vlocity_cmt__SpecificationType__c"": ""Product"",
31  ""vlocity_cmt__SpecificationSubType__c"": ""Simple""
32}