I'm currently writing some code to tie into the dynamic content creating event which is working fine and is pasted below. Essentially it creates a role for each piece of dynamic content (its going to be eventually tied to ecommerce). What I'd like to do is after creating the role go ahead and create the ecommerce product however I'm having trouble getting the actual data of the dynamic model object (name, description, price). Any ideas on the proper way to go about doing this?
var dynamicContentItem = eventInfo.Item;
var role = Convert.ToString(dynamicContentItem.UrlName);