Hey
I am currently trying to Retrieve and delete/create items on an itemList, which is located on the websites setting of this particular website in a dynamicweb solution.
I am able to acquire the itemList and loop through the items like this:
ItemList productList = ItemList.GetItemListById(ProductItemListID); // The id is known
string headline = product.FirstOrDefault( x => x.Key == "ProdOverskrift").Value?.ToString();
My questions are thus:
- To delete and item i can call .Delete() on the item, does this also remove the item for any itemList and clean up all the relations the item would've had? If it does not, then how can i delete the relation to the item? I cannot find any 'remove/delete' item on the ItemList, or on the itemList.Relations.
- When creating an item i dont see any way to add the item to the relation list, or set the different fields values, as the values collection is read only. How do you do this?
I did not find anything useful in regards to question 1 or 2 on the item service, in terms of deleting or update relations. Maybe i am missing something?
BR
Anders Ditlevsen