The only way I’ve found to do this is with a recursive workflow but it’s really WU intensive as there are upwards of 4,000 prices to go through each time.
Do you know of a more efficient way than a recursive workflow? Only thing I can think of is to dump it all into a spreadsheet first for the math then upload the CSV but that leaves a lot of room for human error.
How about doing it once at the end of the day ? (i.e. scheduling your recursive workflow to run at the end of everyday and do the mass comparison instead of doing it each time a new price is added). How does this sound ?
It doesn’t have to be recursive. I’m looking for an alternative to a recursive workflow. But each price is a separate entry and needs to be calculated in a specific order.
This is for the initial upload of about 15 years of daily prices from an API. From there, yes, I do an end of day calculation for each day’s price which only deals with about 20 entries each day. It’s the initial upload of all historical prices that’s the issue.
But the only way I know how to let the workflow know the correct order (which price is item # 1 vs item # 7) is to send the prices as a list sorted by date. Here’s the backend workflow (BEWF) I currently have setup:
This is only for initial upload of the Thing and its prices. It’s 15-20 years of daily prices that’s why it’s such a big list. After initial upload, daily updates as new prices come in are not an issue.
I’m looking for an alternative way to process these initial calculations since a recursive workflow is so WU intensive especially with this many records.