Hi,
I want to create a resource requirement using CRM SDK Method, I tried the below syntax and it throwing error as "Value cannot be null.Parameter name: value"
msdyn_resourcerequirement resourcerequirement = new msdyn_resourcerequirement();
resourcerequirement.msdyn_name = "Test 1";
resourcerequirement.msdyn_allocationmethod = new OptionSetValue(192350000);
resourcerequirement.msdyn_duration = 180;
resourcerequirement.msdyn_IsPrimary = true;
resourcerequirement.msdyn_WorkLocation = new OptionSetValue(690970000);
resourcerequirement.msdyn_Status = new EntityReference("msdyn_requirementstatuses", new Guid("some GUID"));
resourcerequirement.OwnerId = new EntityReference("systemuser", new Guid("some GUID"));
Guid resourcerequirement Id = organizationProxy.Create(resourcerequirement);
Thanks in advance
*This post is locked for comments
Hello there,
please try to debug the code to see in which line this code is failing.
also a suggestion - make sure you are getting the crm service properly and its not null. see here : community.dynamics.com/.../155508
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6