Jun 7, 2022 08:29
for OnPremise I don't have examples (it's a long time I don't deal with OnPremise) all the instances I work with are Online, sorry
Jun 7, 2022 08:23
the new version also support .net core/.net 5/6, the previous one only supported .net framework from 4.6.2 to 4.8
Jun 7, 2022 08:22
if you are using .net you can use the official SDK, don't need to use the web api if you wish
Jun 7, 2022 08:18
at least I found there is this service update that is newer https://support.microsoft.com/en-us/topic/service-update-1-10-for-microsoft-dynamics-crm-on-premises-9-1-ea420f27-925d-4ea0-a8cf-bd668571497c
If you don't want to update (and I totally understand) then your only way is to open a support ticket to Microsoft
Jun 7, 2022 08:12
btw, you can remove your previous screenshot as it contains the url of your instance
Jun 7, 2022 08:07
then I think it's a bug with the current OnPremise version you have, did you install the latest rollup? if is on the latest rollup I can ping Microsoft to check, but if isn't on the latest rollup they will ask you to update it first to the latest version
Jun 7, 2022 08:05
in my online instance works in both ways, with and without odata.bind
Jun 7, 2022 08:05
can you try to remove the odata.bind from the code inside the editor?
so it should be like
record["parentaccountid"] = null;
and execute again
Jun 7, 2022 08:00
it can be related to the fact your are running OnPremise, let me do a quick check
Jun 7, 2022 07:57
you go any syntax tab (in your case XHR as you are using XMLHttpRequest) and from there you have the option to move to Editor, inside the Editor you can execute
Jun 7, 2022 07:35
there you will see all the apps installed inside the instance including DRB
Jun 7, 2022 07:34
you need to open the apps of your instance, like customurl/main.aspx?forceUCI=1&pagetype=apps
Jun 7, 2022 07:32
@AndreyBushman I am out of ideas. When you get approval to install the managed solution of Dataverse REST Builder then you can try with it.
Jun 7, 2022 07:32
@AndreyBushman I updated my answer, practically the only difference is how the instance url is fetched, I use the new way Xrm.Utility.getGlobalContext().getClientUrl() instead of the old one Xrm.Page.context.getClientUrl(). Try to output the values of these two clienturls and see if there is a difference. As I understood from your update you are probably onpremise and connecting inside XrmToolBox with a method that is not supported by DRB (for this you get the message to download the managed solution).
Jun 7, 2022 07:32
thanks for your tests. Tomorrow I will do some tests and let you know, probably I need to update my tool as well to handle this scenario
Jun 7, 2022 07:32
@AndreyBushman I just did a test (parentaccountid of the account table) and I was able to set it and after clear it by just assigning null to the odata.bind property. This is my code for reference; var record = {}; record["[email protected]"] = null; if you can test with my tool Dataverse REST Builder just to set only this property (you add the column but don't assign a value). Maybe the error is coming from another field in your PATCH operation?
 

C#

General discussions about the c# language, Squirrels | gist.gi...
Aug 9, 2014 16:05
ok thanks
Aug 9, 2014 16:00
it's better to install sql server 2012 first, and after vs 2012 without the sql express component?
Aug 9, 2014 16:00
practically I need SQL Server management studio
Aug 9, 2014 15:58
hi, I need to install sql server 2012 and visual studio 2012, suggestions on the correct path?
 
Jul 26, 2013 13:24
very strange, thanks for the update
Jul 25, 2013 14:58
Now i need to go, hope you figure out to make it working
Jul 25, 2013 14:57
don't worry abou that
Jul 25, 2013 14:56
I think this is the last possible check in my mind now to figure out the problem
Jul 25, 2013 14:55
or the step is configured to run in someone else context?
Jul 25, 2013 14:55
the plugin run in your context?
Jul 25, 2013 14:55
I think no, because in that case you will get an error also when you open the record
Jul 25, 2013 14:53
but inside there you need to put the guid of the contact
Jul 25, 2013 14:53
if is this line throws the error means the guid is wrong
Jul 25, 2013 14:51
if you want we can do a teamviewer session (meeting type, means i can only watch your monitor)
Jul 25, 2013 14:51
strange
Jul 25, 2013 14:48
yes, i meant remove the try statement and the relative catch, mantaining my code
Jul 25, 2013 14:47
the plugin is synchronous
Jul 25, 2013 14:47
strange, because my code will sure throw an exception
Jul 25, 2013 14:46
in this way we are use that the original invalidpluginexception message is displayed
Jul 25, 2013 14:45
can you remove for now the try/catch statement?
Jul 25, 2013 14:43
can you post here your plugin or at least the relevant part of code?
Jul 25, 2013 14:37
in this way we can get the situation, if the code arrive to check.ToString we can know what there is inside
Jul 25, 2013 14:36
        if (contact.Contains("parentcustomerid"))
        {
            if (contact["parentcustomerid"] != null)
            {
                var check = contact["parentcustomerid"];
                throw new InvalidPluginExecutionException(check.ToString());
            }
            else
            {
                throw new InvalidPluginExecutionException("is null");
            }
        }
        else
        {
            throw new InvalidPluginExecutionException("parentcustomerid not set");
Jul 25, 2013 14:35
a moment
Jul 25, 2013 14:33
means that contact has no parentcustomerid
Jul 25, 2013 14:28
of course if you are debugging the plugin you can get the value from visual studio
Jul 25, 2013 14:28
if the plugin is synchronous you will get the alert and check the result id
Jul 25, 2013 14:27
and after: throw new InvalidPluginExecutionException(parent.Id.ToString());
Jul 25, 2013 14:27
after write: EntityReference parent = (EntityReference)contact["parentcustomerid"];
Jul 25, 2013 14:27
a moment
Jul 25, 2013 14:26
do a
Jul 25, 2013 14:26
and after because you are inside a plugin
Jul 25, 2013 14:26
and do a Entity contact = service.Retrieve("contact", contactId, new ColumnSet(true));
Jul 25, 2013 14:25
ok, so get the id of this contact