I'm currently trying to copy values over to a new form with Javascript and having issues with Multi-select option set.
This is the error I get:
Error converting value 629940000 to type 'System.Collections.Generic.List`1[System.Int32]'. Path '', line 1, position 9. ---> System.ArgumentException: Could not cast or convert from System.Int64 to System.Collections.Generic.List`1[System.Int32].
What I've tried:
var parameters = {}; parameters["new_class"] = [629940000,629940001]; Xrm.Utility.openEntityForm("quote", null, parameters); //Also tried: var parameters = {}; parameters["new_class"] = Xrm.Page.getAttribute("new_class").getValue(); Xrm.Utility.openEntityForm("quote", null, parameters);
Both tests are giving me the same result. Is it event possible to achieve this?
Thanks in advance for your replies,
Best Regards
*This post is locked for comments