Allow multiple line item updates with the transactional API

0 Kudos

Allow multiple line item updates with the transactional API

The current write back to Anaplan supports a single line item, its intersection and its value.  If trying to update multiple line items at the same intersection they whole block of json needs to be repeated for each line item.  

 

My recommendation would be to have the ability to have multiple key:value pairs per intersection of dimensions.

 

Instead of:

 

[ {

  "lineItemId": "206000000000",

  "dimensions": [

       {"dimensionId": "101000000001", "itemId": "202000000001" },

       { "dimensionId": "20000000003", "itemId": "5438300031" },

       { "dimensionId": "20000000020", "itemId": "107000000001" } ],

"value": 1111 },

{ "lineItemId": "206000000001",

"dimensions": [

       { "dimensionId": "101000000001", "itemId": "202000000001" },

       { "dimensionId": "20000000003", "itemId": "5438300031" },

       { "dimensionId": "20000000020", "itemId": "107000000001" } ],

"value": "Some text value" } ]

 

It would look like this:

[

  {"dimensions": [

      {"dimensionId": "101000000001", "itemId": "202000000001" },

      { "dimensionId": "20000000003", "itemId": "5438300031" },

      { "dimensionId": "20000000020", "itemId": "107000000001" }],

  {"lineItems": [

      {"lineItemId": "206000000000", "value": 1111 },

      { "lineItemId": "206000000001","value": "Some text value" }]

]