Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

The given key was not present in the dictionary. when Creating a Contact

$
0
0

Hi

I am trying to create a Contact via the SDK in C#. All I have is:

_sp = new OrganizationServiceProxy(this._uri, null, cc, null);


Entity new_contact = new Entity("contact");

new_contact.Attributes["firstname"] = "Test";
new_contact.Attributes["lastname"] = "Test";

_sp.Create(new_contact);

Yet I get the given key error when running this. Any ideas?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images