I need to read 2 record types.. price update (start date) and price update detail (price level, quantity and unit price) and update the item prices
b
battk
02/04/2021, 7:05 PM
Probably want to use a map reduce script for this one
battk
02/04/2021, 7:08 PM
Start with a search to get the price update records you want to process
battk
02/04/2021, 7:10 PM
That should be the return object for the getInputData stage
battk
02/04/2021, 7:15 PM
For your map, you should do a search for the matching detail records of the price update and write each one to the reduce
battk
02/04/2021, 7:16 PM
During the reduce, you update the item with the information from the detail record ( and probably mark the detail as processed so it isnt processed again)
battk
02/04/2021, 7:18 PM
If you are clever, you can probably combine the price update and detail search into one and do the item updates in map instead