Hello there!
I use ItemService.UpdateLifeCycleStates to update the life cycle states of several items at once. This works well overall.
A small problem remains, though:
The method returns several ProductRestric[] to indicate issues with the requested update. I would like to know which Item a ProductRestric applies to. If I only update one Item at a time, that is obvious, but if I update multiple Items with one call to the method, I fail to see how to make that connection.
I would like to tell the user which item caused the issue so that he has an easier time fixing it, for example if an item needs to be updated before being released etc...
So, is it possible to find out what Item the returned ProductRestric instances apply to?
Best regards and thanks for your time
The EntId property on ProductRestric should tell you which Item failed. Offhand, I'm not sure if EntId == item.Id, item.RevId or item.MasterId. I think it should be Item.Id, but you will have to confirm.