How to get media Id from IContent
# help-with-umbraco
b
I need to check a media item in a Notification, the problem is that I need to keep in mind that not all pages are published yet so I need to get the value from IContent. When I use entity.GetValue() it returns a json-string with a key and mediakey. What object can this be parsed to? And can I use any of those keys to get the actual media item?
2 Views