Try Now
More in this section

Forums / Module Builder / Updating an Array of GUIDs from MVC

Updating an Array of GUIDs from MVC

2 posts, 0 answered
  1. Jay
    Jay  avatar
    2 posts
    03 Mar 2016
    17 Mar
    Link to this post

    This is the error I receive:
    The specified property 'RelatedAsset' does not exist on type 'Telerik.Sitefinity.DynamicTypes.Model.Resource.Resource'.


    I've created a custom field called RelatedAsset in the Resource module but it's saying the property does not exist?

  2. Pavel Benov
    Pavel Benov avatar
    21 posts
    26 Oct 2016
    22 Mar
    Link to this post
    Hi Jay,

    Are you by any chance trying to set the field by directly accessing it from the DynamicContent object like a property?

    myDynamicItem.RelatedAsset = someGuidArray;

    This will not work for DynamicContent objects. You need to use GetValue() and SetValue() extension methods respectively when you want to work with DynamicContent fields.

    You can check the following Documentation article:


    Note to add Telerik.Sitefinity.Model namespace to your usings in order to be able to access those methods.

    Pavel Benov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered