Newer Version Available

This content describes an older version of this product. View Latest

Data Source: ProductMeasure

This section provides sample code snippets for the integration metadata JSON with the data source. The following example shows the datasources configuration payload for ProductMeasure.
1{
2    "configuration": {
3	    "datasources": [
4	        {
5	            "name": "ProductMeasures"
6	        }
7	    ],
8	    "dimensions": {
9	        "productdimension": {
10	            "attributes": [
11	                {
12	                    "label": "Description",
13	                    "name": "description"
14	                },
15	                {
16	                    "label": "ExternalId",
17	                    "name": "externalid"
18	                },
19	                {
20	                    "label": "Category",
21	                    "name": "category"
22	                }
23	            ],
24	            "key": "externalid",
25	            "level": "Product"
26	        },
27	        "accountdimension": {
28	            "attributes": [
29	                {
30	                    "label": "ExternalId",
31	                    "name": "externalid"
32	                },
33	                {
34	                    "label": "Name",
35	                    "name": "name"
36	                },
37	                {
38	                    "label": "AccountNUmber",
39	                    "name": "accountnumber"
40	                }
41	            ],
42	            "key": "externalid",
43	            "level": ""
44	        },
45	        "kpidimension": {
46	            "measures": [
47	                {
48	                    "name": "ProPlanIncrVolume",
49	                    "label": "Pro Plan Incr Volume"
50	                }
51	            ]
52	        },
53	        "promotiondimension": {
54	            "attributes": [
55	                {
56	                    "label": "id",
57	                    "name": "id"
58	                },
59	                {
60	                    "label": "datefrom",
61	                    "name": "datefrom"
62	                },
63	                {
64	                    "label": "templateName",
65	                    "name": "templateName"
66	                },
67	                {
68	                    "label": "accountid",
69	                    "name": "accountid"
70	                },
71	                {
72	                    "label": "accountplanrelevant",
73	                    "name": "accountplanrelevant"
74	                },
75	                {
76	                    "label": "accountexternalid",
77	                    "name": "accountexternalid"
78	                }
79	            ],
80	            "key": "id",
81	            "level": ""
82	        }
83	    },
84	    "exportsettings": {
85	        "columns": [
86	            "productdimension.externalid",
87	            "productdimension.category",
88	            "productdimension.description",
89	            "kpidimension.label",
90	            "kpidimension.measurecode"
91	        ],
92	        "csvseparator": ","
93	    },
94	    "exportfilters": {
95	        "conditions": [
96	            {
97	                "operator": "includes",
98	                "value": [
99	                    "Kroger_Atlanta"
100	                ],
101	                "attribute": "externalid",
102	                "dimension": "accountdimension",
103	                "name": "cond1"
104	            }
105	        ]
106	    }
107    }
108}