Set state using JScript/oData for custom entity RRS feed

  • Question

  • Hello All,

    I need to deactivate some instances of entities retrieved using an oData/JScript query.

    I know that the statecode/statuscode need to be updated (to values of 1 and 2 respectively).

    I've tried just using a oData/JScript call, but I get an error telling me that "2 is not a valid value for status code" (paraphrased).

    I see that there are some SetStateXxxxx functions available for the "Execute" method that can be called. Here is a link: http://msdn.microsoft.com/en-us/library/cc677072.aspx

    But, these seem to imply that they only work on built-in entities. How do I get this to work with a custom entity?

    Thursday, March 8, 2012 10:10 PM


All replies