Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Saif Obeidat 79 posts 296 karma points
    Apr 16, 2019 @ 14:29
    Saif Obeidat

    SetValue doesnt work for Multinodetreepicker Umbraco8


    I am wondering on how to set value for MultiNodeTreePicker property with on Umbraco 8

    I have tried the below code as a quick test:

     var content = contentService.CreateContent("TestPage", homeUdi, "article");
     var category = Umbraco.Content(2887);
     var categoryUDI = new GuidUdi("category", category.Key);
     content.SetValue("categories", categoryUDI.ToString());

    I got this error:

    enter image description here

    Multiple actions were found that match the request: GetByIds on type Umbraco.Web.Editors.EntityController GetByIds on type


Please Sign in or register to post replies

Write your reply to: