Loading...

CREATE OR UPDATE (UPSERT) RECORDS USING ALTERNATE KEYS IN DYNAMICS 365 SDK

CREATE OR UPDATE (UPSERT) RECORDS USING ALTERNATE KEYS IN DYNAMICS 365 SDK

If you're working with Dynamics 365 SDK and need to create or update records using alternate keys, this post is for you. The post walks you through the process of updating records based on an alternate key and includes sample code to accomplish this task.

The alternate key in focus, for this post, is set on the "Account Name (name)" field of the account entity. To achieve the UpddateRequest, the code leverages the UpsertRequest feature to update key attributes in record fields. The sample code includes key attribute collections, target objects, and try-catch blocks to handle error exceptions.

The post also highlights the exception errors you may encounter when implementing the update process. You'll receive an exception when the specified key value or no key is added to the entity.

If you're struggling with alternative key updates in Dynamics 365, this post offers an excellent starting point to help you get started on the right path.

Hope this helps!

Published on:

Learn more
Dynamics 365 Education and Knowledge
Dynamics 365 Education and Knowledge

Share post:

Related posts

Get Related Entity data along with primary entity data in MS Dynamics CRM using QueryExpression

If you're looking to enhance the functionality of your MS Dynamics CRM by accessing related entity data along with primary entity data, this t...

8 years ago

Create / Update Related entity record in MS Dynamics CRM

This blog post provides guidance on creating and updating related entity records in MS Dynamics CRM. While working on the CRM platform, it's c...

8 years ago

Plugin Execution on DEACTIVATE/ACTIVATE the entity record in CRM

If you're seeking a solution to plugin execution when an entity record is deactivated or activated in CRM, you're in luck. This post explores ...

8 years ago

How the “Regarding” field works in Microsoft Dynamics 365 CRM and the process for adding a custom entity to the “Regarding” lookup field.

Microsoft Dynamics 365 CRM is a powerful tool that allows you to associate records with other entities through the use of the "Regarding" fiel...

2 months ago

Tooltip on Search for Entity records in Dynamics 365

If you're using Microsoft Dynamics 365, you know that it offers various settings that can be configured as per different business requirements...

1 year ago

CREATE DYNAMICS 365 ENTITY IN SDK

If you're looking to create a custom entity in Microsoft Dynamics 365 using SDK, this tutorial provides a step-by-step guide on how to do so. ...

2 years ago

RETRIEVE RECORDS USING ALTERNATE KEYS IN DYNAMICS 365 SDK

If you are working with Dynamics 365 SDK and do not have the GUID of the record, there is an alternative method to retrieve it using its alter...

2 years ago

Enable custom entity for outlook dynamics 365

This video provides a step-by-step guide on how to enable a custom entity for Outlook in Dynamics 365. By doing so, you can easily view and ma...

2 years ago

D365 CRM Entity Relationships

In this post, we delve into the different types of entity relationships in Microsoft Dynamics 365 CRM and offer insights into how they work. U...

2 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy