...
Code Block | ||
---|---|---|
| ||
var session = serviceFactory.GetSessionFromConnectionString("MyDynamicsInstance");
// Field values are set with Dictionary<string, object>.
var fieldValues = new Dictionary<string, object>() {
{ "firstname", "John" },
{ "lastname", "Smith" },
{ "emailaddress1", "example@example.com" }
};
var lead = await GenericEntity.InsertAsync(session, "lead", fieldValues); |
...