TMFTMForumTransformCatalogResponse

This Data Mapper is used in these IPs

Input JSON 

1{
2  "vlocity_cmt__CatalogCode__c": "CloudServicesretest",
3  "vlocity_cmt__Description__c": "A category to hold all available cloud service offers",
4  "vlocity_cmt__EndDateTime__c": "2024-03-25T00:00:00.000+0000",
5  "vlocity_cmt__GlobalKey__c": "86cf7ccf-34d1-a19d-d6fd-eb67d6b5a1ad",
6  "vlocity_cmt__IsActive__c": true,
7  "vlocity_cmt__IsCatalogRoot__c": false,
8  "vlocity_cmt__StartDateTime__c": "2020-08-24T00:00:00.000+0000",
9  "vlocity_cmt__VendorAccount__c": "0015e00000qxgtpAAA",
10  "Id": "a0e5e000003bjYdAAI",
11  "LastModifiedDate": "2022-06-27T14:58:03.000+0000",
12  "Name": "Cloud Services retest",
13  "attributes": {
14  "type": "vlocity_cmt__Catalog__c",
15  "url": "/services/data/v55.0/sobjects/vlocity_cmt__Catalog__c/a0e5e000003bjYdAAI"
16},
17  "catalogId": "a0e5e000003bjYdAAI",
18  "category": [
19  {
20  "vlocity_cmt__ChildCatalogId__c": "a0e5e000003bgPNAAY",
21  "vlocity_cmt__ChildCatalogId__r": {
22  "vlocity_cmt__GlobalKey__c": "15701fbd-a017-9fed-eebb-44890bc4e86c",
23  "Id": "a0e5e000003bgPNAAY",
24  "Name": "Software as a Service",
25  "attributes": {
26  "type": "vlocity_cmt__Catalog__c",
27  "url": "/services/data/v55.0/sobjects/vlocity_cmt__Catalog__c/a0e5e000003bgPNAAY"
28}
29},
30  "Id": "a2R5e000000JxXpEAK",
31  "attributes": {
32  "type": "vlocity_cmt__CatalogRelationship__c",
33  "url": "/services/data/v55.0/sobjects/vlocity_cmt__CatalogRelationship__c/a2R5e000000JxXpEAK"
34}
35},
36{
37  "vlocity_cmt__ChildCatalogId__c": "a0e5e000003bfqlAAA",
38  "vlocity_cmt__ChildCatalogId__r": {
39  "vlocity_cmt__GlobalKey__c": "03ed94db-2d33-af8e-f785-deddd0d6657d",
40  "Id": "a0e5e000003bfqlAAA",
41  "Name": "Cloud Storage",
42  "attributes": {
43  "type": "vlocity_cmt__Catalog__c",
44  "url": "/services/data/v55.0/sobjects/vlocity_cmt__Catalog__c/a0e5e000003bfqlAAA"
45}
46},
47  "Id": "a2R5e000000JxXqEAK",
48  "attributes": {
49  "type": "vlocity_cmt__CatalogRelationship__c",
50  "url": "/services/data/v55.0/sobjects/vlocity_cmt__CatalogRelationship__c/a2R5e000000JxXqEAK"
51}
52}
53],
54  "epcResponse": {
55  "errorCode": "201",
56  "failureReason": "Created",
57  "overallResult": "success"
58},
59  "error": "OK",
60  "errorCode": "INVOKE-200",
61  "relatedParty": [
62{
63  "AccountNumber": "123",
64  "Id": "0015e00000qxgtpAAA",
65  "Name": "demo user15",
66  "RecordType": {
67  "Id": "0125e00000097EFAAY",
68  "Name": "Consumer",
69  "attributes": {
70  "type": "RecordType",
71  "url": "/services/data/v55.0/sobjects/RecordType/0125e00000097EFAAY"
72}
73},
74  "RecordTypeId": "0125e00000097EFAAY",
75  "attributes": {
76  "type": "Account",
77  "url": "/services/data/v55.0/sobjects/Account/0015e00000qxgtpAAA"
78}
79}
80],
81  "result": {
82  "id": "a0e5e000003bjYdAAI"
83},
84  "success": true
85}

Output JSON 

1{
2  "validFor": {
3  "startDateTime": "2020-08-24T00:00:00.000+0000",
4  "endDateTime": "2024-03-25T00:00:00.000+0000"
5},
6"relatedParty": [
7{
8  "name": "demo user15",
9  "id": "123",
10  "role": "Consumer",
11  "@referredType": "RecordType"
12}
13],
14"category": [
15{
16  "name": "Software as a Service",
17  "id": "15701fbd-a017-9fed-eebb-44890bc4e86c",
18  "@referredType": "vlocity_cmt__Catalog__c"
19},
20{
21  "name": "Cloud Storage",
22  "id": "03ed94db-2d33-af8e-f785-deddd0d6657d",
23  "@referredType": "vlocity_cmt__Catalog__c"
24}
25],
26  "name": "Cloud Services retest",
27  "lifecycleStatus": true,
28  "isRoot": false,
29  "id": "86cf7ccf-34d1-a19d-d6fd-eb67d6b5a1ad",
30  "description": "A category to hold all available cloud service offers",
31  "statusCode": "201",
32  "@referredType": "vlocity_cmt__Catalog__c"
33}