- Overview
- Adobe Sign
- Alteryx
- Amazon Comprehend
- Amazon Connect
- Amazon Rekognition
- Amazon Textract
- Box
- Release notes
- About the Box activity package
- Fix XAML After Package Update
- Project compatibility
- Setup
- Technical references
- Box Scope
- Commit Session
- Create File Version Session
- Create Upload Session
- Upload Part
- Delete Old Version
- Get Versions
- Promote Version
- Upload File Version
- Copy File
- Delete File
- Download File
- Get File Comments
- Get File Info
- Get File Info Details
- Get File Lock Info
- Lock File
- Move File
- Unlock File
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder Info
- Get Folder Items
- Rename Folder
- Search For Content
- Execute Method
- Cognitive
- DocuSign
- Release notes
- About the DocuSign activity package
- Project compatibility
- Setup
- DocuSign Scope
- Invoke DocuSign Operation
- Create Envelope
- Create Envelope And Send
- Create Envelope From Template
- Create Envelope Recipients
- Get Document
- Get Documents
- Get Envelope
- Get Form Data
- Send Envelope
- Update Envelope
- List Attachments
- List Custom Fields
- List Documents
- List Envelope Status Changes
- List Recipients
- Create Bulk Send List
- Create Bulk Send Request
- Get Bulk Send List
- Get Bulk Send Lists
- Create Template Custom Fields
- Create Template Recipients
- Get Template
- List Templates
- Google Vision
- Jira
- Release notes
- About the Jira activity package
- Project compatibility
- Setup
- Jira Scope
- Execute Method
- Add Attachment
- Delete Attachment
- Download Attachment
- Get Attachments
- Add Comment
- Delete Comment
- Get Comments
- Create Component
- Delete Component
- Get Components
- Search Dashboards
- Create Filter
- Get Filters
- Create Issue Link
- Delete Issue Link
- Get Issue Link Types
- Get Issue Links
- Add Watcher
- Assign Issue
- Clone Issue
- Create Issue
- Delete Issue
- Get Issue
- Get Watchers
- Remove Watcher
- Search Issues Using JQL
- Transition Issue
- Update Issue
- Create Project
- Delete Project
- Get Project Types
- Get Projects
- Update Project
- Get Transitions
- Create User
- Delete User
- Find Users
- Marketo
- Microsoft Dynamics
- Microsoft Dynamics Finance and Operations
- Microsoft Translator
- Microsoft Vision
- Oracle Integration Cloud
- Oracle NetSuite
- Salesforce
- Release notes
- About the Salesforce activity package
- Project compatibility
- Setup
- Quickstart
- Salesforce Application Scope
- Create Bulk API Job
- Get Bulk API Job
- Get Bulk API Job Results
- Start or Abort Bulk API Job
- Assign File
- Download File
- Upload File
- Composite Request
- Delete Record
- Get List View Records
- Get Record
- Insert Record
- Update Record
- Upsert Record
- Execute Report
- Execute SOQL
- Format Column Names
- Format Labels And Values
- Lightning REST API Request
- Search
- SAP BAPI
- ServiceNow
- Slack
- Smartsheet
- Release notes
- About the Smartsheet activity package
- Project compatibility
- Setup
- Technical references
- Quickstart: Working With Rows
- Smartsheet Application Scope
- Attach File
- Attach URL
- Delete Attachment
- Get Attachment
- List Attachments
- Add Comment
- Delete Comment
- Get Comment
- List Discussions
- Copy Folder
- Create Folder
- Delete Folder
- Get Folder
- List Folders
- Add Group Members
- Get Group
- List Groups
- Remove Group Member
- Get Report
- List Reports
- Add Rows
- Copy Rows
- Create Discussion on Row
- Delete Rows
- Get Row
- List Rows
- Move Rows
- Update Rows
- Copy Sheet
- Create Sheet
- Create Sheet From Template
- Download Sheet
- Get Sheet
- List Sheets
- Update Sheet
- Add User
- Get User
- List Users
- Remove User
- Copy Workspace
- Create Workspace
- List Workspaces
- Import Sheet From CSV / XLSX
- Invoke Smartsheet Operation
- Search Activity
- Send Via Email
- Share Object
- SuccessFactors
- Tableau
- Twilio
- Workato
- Workday
Quickstart - Records
The purpose of this guide is to help you create a working sample that uses the following Microsoft Dynamics 365 activities:
This working sample enables you to quickly verify the connection to your Microsoft Dynamics 365 application and get familiar with the activity's input/output datatypes.
After completing the steps in this guide, you'll have an automation sequence that does the following:
- Establishes a connection to your Microsoft Dynamics 365 application (Get Credential and Microsoft Dynamics Application Scope).
- Inserts a new account record (Insert Record).
- Searches for the inserted account record (Search Records).
- Updates the website field of the account record (Update Record).
- Verifies the account record was successfully updated (Get Record).
-
Deletes the inserted account record (Delete Record).
Note: While there may be more efficient ways of achieving the same result, the goal of this sequence is to demonstrate all of the record activities.
Before you begin:
- Complete the Microsoft Dynamics 365 Setup steps.
-
Use the Package Manager to install the Microsoft.Activities.Extensions package (this is for the Search Records activity).
Note: This guide uses ClientCredentials as the AuthenticationType in the Microsoft Dynamics Application Scope activity. If you prefer to use PasswordCredentials, you can skip step 1 (add a Get Credential activity) and follow the bulleted substeps in step 2 (add the Microsoft Dynamics Application Scope activity).
Build your project
- Add a Get Credential activity.
- Enter the AssetName for the credential asset you created (during the Setup) for the application Client Secret (e.g., "MicrosoftDynamics365ClientCredentials").
- Create and enter a
SecureString
variable for the Password property (e.g., clientSecret). - Create and enter a
String
variable for the Username property (e.g, clientId). - Add the Microsoft Dynamics 365 Application Scope activity after the Get Credential activity.
-
Click the Configure button (this opens the Connection Wizard), select your AuthenticationType, enter your credentials, and click the Test Connection button. For more information about the purpose and behavior of this wizard, see the section.
- This step is for design time purposes only. To populate the Microsoft Dynamics Application Scope properties, continue to complete the steps below.
-
In the AuthenticationType property, select your preferred authentication type.
- If you select
PasswordCredentials, create a
String
variable for the ClientId (e.g., Name: clientId Default: "56X9aXXX-b5d9-4a90-XXXX-13XX9643XXXX")
- If you select
PasswordCredentials, create a
- In the ClientId property,
enter the
String
variable you created for the Get Credential activity or substep above (e.g., clientId). -
In the ClientSecret property, enter the
SecureString
variable you created for the Get Credential activity (e.g., clientSecret).- If you selected PasswordCredentials leave the ClientSecret property empty.
- In the EndpointUrl
property, create and enter a
String
variable with the URL of the CRM instance that you want to connect to (e.g., Name: endpointURL Default: "https://uipath.crm4.dynamics.com/" ) -
In the TenantId property, create and enter a
String
variable for the directory (tenant) ID assigned to your Azure Active Directory (ADD) tenant (e.g., Name: tenantId Default: "d8353d2a-b153-4d17-8827-902cXXXXXXX").-
If you selected PasswordCredentials, select your password Prompt preference (options).
-
-
Add the Insert Record activity inside the Microsoft Dynamics Application Scope activity.
-
Click the Configure button inside the Insert Record activity (this opens the Object Wizard).
- In the Select Entity drop-down list, select Account.
- In the
accountId field, create and enter a
String
variable (e.g., accountId). - In the Add Single Field textbox, enter name and click enter.
- In the name field, enter an account name (e.g., "Quickstart_Account").
-
Click the Done button.
- Add an Add to dictionary activity after the Insert Record activity.
- In the Dictionary
property, create and enter a
Dictionary<String,String>
variable accordingly: Name: queryOption, Default: new Dictionary(Of String, String) (you may use a different Name value, but the Default value is required). - In the Key property, enter "$filter".
-
In the Value property, enter "name eq 'Quickstart_Account'" (Quickstart_Account is the name of the account you inserted in the steps above. If you entered a different name, use that value instead).
- For more information about query values, see the query metadata and/or query data pages in the Microsoft documentation.
- Add the Search Records activity after the Add to dictionary activity.
- In the Object property, select Account.
- In the Query
Options property, enter the
Dictionary<String,String>
variable you created above (e.g., queryOption). -
In the Result property, create and enter a
DataTable
variable (e.g., searchResults).
-
-
Add an Assign activity after the Search Records activity.
- In the To
property, create and enter a
String
variable (e.g., webURL). -
In the Value property, enter the following: searchResults.Rows(0).Item("websiteurl").ToString.
- For more information about the column names for each entity, see the Web API EntityType Reference in the Microsoft documentation.
- Add an If activty after the Assign activity.
- Create a
String
variable with a default value of a URL (e.g., Name: website, Default: "www.uipath.com"). - In the Condition property, enter the following: webURL = website.
- In the Then statement box, add a Write Line activity with the following Text: "Website present".
-
In the Else statement box, add the Update Record activity.
-
Click the Configure button inside the Update Record activity (this opens the Object Wizard).
- In the Select Entity drop-down list, select Account.
- In the
accountId field, enter the
String
variable you created for the Insert Record activity (e.g., accountId). - In the Add Single Field textbox, enter websiteurl and click enter.
- In the
name field, enter the
String
variable you created in the step above (e.g., website). -
Click the Done button.
-
- In the To
property, create and enter a
Test your project
-
Add the Get Record after the Update Record activity (inside the Else statement box).
-
Click the Configure button inside the Get Record activity (this opens the Object Wizard).
- In the Select Entity drop-down list, select Account.
- In the
accountId field, enter the
String
variable you created for the Insert Record activity (e.g., accountId). - In the Add Single Field textbox, enter websiteurl and click enter.
- In the
websiteurl field, create and enter a
String
variable (e.g., websiteVerification). - Click the Done button.
- Add an If activity after the Get Record activity (inside the Else statement box).
- In the Condition property, enter the following: website = websiteVerification.
- In the Then statement box, add a Write Line activity with the following Text: "Website update succeeded!".
- In the Then statement box, add a Write Line activity with the following Text: "Website update failed".
-
-
Add the Delete Record activity outside of the first If activity.
- In the Object property, select Account.
- In the Id field,
enter the
String
variable you created for the Insert Record activity (e.g., accountId). - In the
MicrosoftDynamicsStatus property, create and enter a
ResponseStatus
variable (e.g., responseStatus).
-
Add a Write Line activity after the Delete Record activity.
- In the Text property, enter the following: "Record deleted: "+responseStatus.Success.ToString.
-
Click Run and verify the Output window includes the expected write line values.
You're done!
To learn more about the Microsoft Dynamics 365 activities (including example property inputs/outputs), see the Activities page for a complete activity list and links to the activity detail pages.