Upsert Record (MS Dynamics 365) activity

An activity that creates a record, or changes records if they exist. Microsoft Dynamics 365 recommends using Upsert Record as an alternative to Create Record so you do not create duplicate records.


Upsert Record activity

Configure the Upsert Record activity

To configure the Upsert Record activity, do the procedure in this topic.

Examples

Good to Know

How to Start

  1. Open Process Builder.

    For information about how to open this screen, refer to Process Builder.

  2. In Process Builder, in the Activity Library, open the MS Dynamics 365 tab.

    Open MS Dynamics 365 tab
  3. On the MS Dynamics 365 tab, drag the Upsert Record activity onto your process.

    Drag Upsert Record activity

General Configuration

Specifies the basic settings for the Upsert Record activity.

Figure: General Configuration screen

General Configuration screen

Fields

Field NameDefinition

Display Name

Description:
Specifies the activity name that shows in your process.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None
Accepts Variables:
No
Example:
This is a common configuration field that is used in many examples. Refer to:
  • Examples - Step-by-step use case examples, information about what types of examples are provided in the AgilePoint NX Product Documentation, and other resources where you can find more examples.

Description

Description:
Specifies an optional text description for your activity.
Allowed Values:
More than one line of text.
Default Value:
None
Accepts Variables:
No

Connection Timeout (Seconds)

Description:
Specifies the number of seconds permitted to complete an action before the connection stops.
Allowed Values:
An integer.

Represents

  • A number of seconds
Default Value:
600
Accepts Variables:
No

Upsert Record Configuration

Specifies the information to create a record, or changes records if they exist.

Figure: Upsert Record Configuration > Request tab

Upsert Record Configuration Request tab

Fields

Field NameDefinition

MS Dynamics 365

Description:
Specifies the access token that connects to your Microsoft Dynamics 365 application.
Allowed Values:
A list of access tokens configured for your environment.
Default Value:
None
Example:
Refer to:

Create Add Token icon

Opens this Screen:
Access Token for Microsoft Dynamics 365
Function of this Screen:
Configure an access token to connect to Microsoft Dynamics 365.
Example:
Refer to:

Entity Name

Description:
Specifies the name for your entity.
Allowed Values:
One line of text (a string).

Accepted:

  • Letters
  • Numbers
  • Spaces
Default Value:
None

When you select the Microsoft Dynamics 365 access token, the name of the entity shows in the Entity Name field.

Accepts Variables:
No

Field Name

Description:
Specifies the name of the field value connected to a record.
Allowed Values:
A valid field name.
Default Value:
None.

When you select the Entity Name, the name of the record shows in the Field Name.

Update Message for Multiple Records

Description:
Specifies if you want to change one record or all the records.
Allowed Values:
  • Selected - Changes all the records.
  • Deselected - If one record exists, it changes. If more than one record exists, an error shows in the Manage Center.
Default Value:
Deselected

Request Mapping

Description:
Connects the Microsoft Dynamics 365 API request parameter to your process schema. This is mandatory only if the request passes data from the process schema to parameters in the Dynamics 365 API.
To Open this Field:
  1. On the Upsert Entity Configuration screen, click the Request tab.
Allowed Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper screen.

Use this screen to connect the request to the data model for your process.

Example:
Refer to:

Map Response to Application Schema

Description:
Specifies the connection from the Microsoft Dynamics 365 API response parameter to your process schema.
To Open this Field:
  1. On the Upsert Entity Configuration screen, click the Response tab.
Allowed Values:
Click the Schema Mapping Schema Mapping icon button to open the Schema Mapper screen.

Use this screen to connect the response to the data model for your process.

Example:
Refer to:

Store Response in This Variable

Description:
Specifies a process data variable that contains the entity ID from Salesforce.
To Open this Field:
  1. On the Upsert Entity Configuration screen, click the Response tab.
Allowed Values:
A process data variable that accepts an alphanumeric string with no spaces that represents the entity ID.
Default Value:
None
Accepts Variables:
Yes
Limitations:

Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation. It is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business use cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, or other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

Record Ownership

Description:
Specifies the owner of the entity.
To Open this Field:
  1. Click the Record Ownership tab.
Allowed Values:
Default Value:
Service Account used in Access Token