Hi Swethasree Sreemanthula,
Looking at your Inventory entity definition, the example you describe above seems to be missing several things:
- The Inventory.Id is the identifier attribute for Inventory, and as such it is unique, so there cannot be two Inventory records with the same value for Id.
- There is no Inventory.Location attribute in your Inventory definition
- There is no visible relation between your Inventory.Rack attribute and the (undefined) Inventory.Location attribute
I get the feeling you need to work a bit more on your data model so it correctly reflects your needs - or maybe I just need you to clarify it better so I can understand it :-)
If you want something like "each InventoryId has multiple locations" with your current data model, then you'll need:
- An extra column to represent this, the identifier attribute isn't an option (think, for instance, adding Inventory.Number, completely independent from Inventory.Id).
- To create a query for Inventory records with a certain Inventory.Number value and at a certain location (not sure what's your way of currently representing this)
- Delete each one of them using the DeleteInventory entity action passing it the record's Inventory.Id
This should allow you to delete multiple records with the same Inventory.Number that are at the same location, without impact other records with the same Inventory.Number but at other locations...
Edit: Please don't duplicate questions, and follow up with the answers provided or mark one as a solution if it helped you solve your issue. If you still cannot solve your problem, you need to better explain to us what are your roadblocks, eventually even provide a sample OML that can show so we can address that.
Hope this helps!