Common Data Service (current environment)

Provides access to the org-based database on Microsoft Common Data Service in current environment.

This connector is available in the following products and regions:

Service Class Regions
Power Automate Premium All Power Automate regions
Power Apps Premium All Power Apps regions
Contact
Name Microsoft
URL https://us.flow.microsoft.com/en-us/support/
Connector Metadata
Publisher Microsoft
Website https://flow.microsoft.com/
Privacy policy https://privacy.microsoft.com
Categories Data

Creating a connection

The connector supports the following authentication types:

Default Required parameters for creating connection. All regions

Default

Applicable: All regions

Required parameters for creating connection.

Throttling Limits

Name Calls Renewal Period
API calls per connection6000300 seconds

Actions

Add a new row

This action allows you to add a new row in the selected Common Data Service table.

Delete a row

This action allows you to delete a row from a Common Data Service table.

Download a file or an image

This action allows you to download a file or an image content from a Common Data Service table.

Get a row by ID

This action allows you to get the row that matches an ID in a Common Data Service table.

List rows

This action allows you to list the rows in a Common Data Service table that match the selected options.

Perform a bound action

This action allows you to perform Common Data Service actions associated with a selected table.

Perform a changeset request

This action allows you to perform a group of Common Data Service connector operations as a single transaction. If one of the operations fails, all the successful actions are rolled back.

Perform an unbound action

This action allows you to perform Common Data Service actions available in the environment that are not associated with any table.

Predict using AI Builder models

This action allows you to use the AI Builder models in your Common Data Service environment for predictions. Common models include Form Processing, Object Detection, Text Classification or use the prebuilt Business Card Reader, Key phrase extraction, Language detection, Text recognition – OCR and Sentiment Analysis.

Relate rows

This action allows you to link a row in one Common Data Service table to another if the tables have a one-to-many or many-to-many relationship.

Unrelate rows

This action allows you to remove the link between a row in one Common Data Service table to another if the tables have a one-to-many or many-to-many relationship.

Update a row

This action allows you to modify any selected row in a Common Data Service table, or adds a new row if it doesn’t exist.

Upload a file or an image

This action allows you to upload a file or an image content to a Common Data Service table with a compatible column type.

Add a new row

This action allows you to add a new row in the selected Common Data Service table.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Returns

response
object

Delete a row

This action allows you to delete a row from a Common Data Service table.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Partition Id
partitionId string

An option to specify the partitionId while deleting row for NoSQL tables

Download a file or an image

This action allows you to download a file or an image content from a Common Data Service table.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Column name
fileImageFieldName True string

Choose a column

Image size
size string

Enter 'full' for entire image if enabled (default = thumbnail)

Returns

The content of the file or image

File or image content
binary

Get a row by ID

This action allows you to get the row that matches an ID in a Common Data Service table.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Select columns
$select string

Enter a comma-separated list of column unique names to limit which columns are listed

Expand Query
$expand string

Enter an Odata style expand query to list related rows

Partition Id
partitionId string

An option to specify the partitionId while retrieving data for NoSQL tables

Returns

response
object

List rows

This action allows you to list the rows in a Common Data Service table that match the selected options.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Select columns
$select string

Enter a comma-separated list of column unique names to limit which columns are listed

Filter rows
$filter string

Enter an OData style filter expression to limit which rows are listed

Sort By
$orderby string

Enter an Odata style orderBy query to sort the rows

Expand Query
$expand string

Enter an Odata style expand query to list related rows

Fetch Xml Query
fetchXml string

Enter a Fetch XML query for advanced customization

Row count
$top integer

Enter the number of rows to be listed (default = all)

Skip token
$skiptoken string

Enter the skip token obtained from a previous run to list rows from the next page

Partition ID
partitionId string

An option to specify the partitionId while retrieving data for NoSQL tables

Returns

List of tables

Perform a bound action

This action allows you to perform Common Data Service actions associated with a selected table.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Action Name
actionName True string

Choose an action

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Returns

response
object

Perform a changeset request

This action allows you to perform a group of Common Data Service connector operations as a single transaction. If one of the operations fails, all the successful actions are rolled back.

Perform an unbound action

This action allows you to perform Common Data Service actions available in the environment that are not associated with any table.

Parameters

Name Key Required Type Description
Action Name
actionName True string

Choose an action

Returns

response
object

Predict using AI Builder models

This action allows you to use the AI Builder models in your Common Data Service environment for predictions. Common models include Form Processing, Object Detection, Text Classification or use the prebuilt Business Card Reader, Key phrase extraction, Language detection, Text recognition – OCR and Sentiment Analysis.

Parameters

Name Key Required Type Description
Model name
recordId True string

Choose a model

Returns

response
object

Relate rows

This action allows you to link a row in one Common Data Service table to another if the tables have a one-to-many or many-to-many relationship.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Relationship
associationEntityRelationship True string

Choose relationship type

Relate with
@odata.id True string

Enter the row URL using OData ID from a previous step or typing the full URL (eg. https://org0.crm.dynamics.com/api/data/v9.0/faxes(3ce6c728-3c8a-4b55-a4ee-a251b253c3ee)

Unrelate rows

This action allows you to remove the link between a row in one Common Data Service table to another if the tables have a one-to-many or many-to-many relationship.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Relationship
associationEntityRelationship True string

Choose relationship type

Unrelate with
$id True string

Enter the row URL using OData ID from a previous step or typing the full URL (eg. https://org0.crm.dynamics.com/api/data/v9.0/faxes(3ce6c728-3c8a-4b55-a4ee-a251b253c3ee)

Update a row

This action allows you to modify any selected row in a Common Data Service table, or adds a new row if it doesn’t exist.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Returns

response
object

Upload a file or an image

This action allows you to upload a file or an image content to a Common Data Service table with a compatible column type.

Parameters

Name Key Required Type Description
Table name
entityName True string

Choose a table

Row ID
recordId True string

Enter the row's globally unique identifier (GUID)

Column name
fileImageFieldName True string

Choose a column

Content
item True binary

Add file or image content

Content name
x-ms-file-name True string

Enter a name for the file or image

Triggers

When a flow step is run from a business process flow

This trigger allows you to start a flow when the Run Flow button in a business process flow step is clicked. (Available only for Power Automate.)

When a row is added, modified or deleted

This trigger allows you to start a flow when a row is added, modified or deleted in a Common Data Service table, such that it matches the selected options.

When a flow step is run from a business process flow

This trigger allows you to start a flow when the Run Flow button in a business process flow step is clicked. (Available only for Power Automate.)

Returns

Name Path Type Description
Flows Workflow Log Id
entity.FlowsWorkflowLogId string

Flow workflow log id.

BPF Instance Id
entity.BPFInstanceId string

Business process flow instance id.

BPF Instance Table Name
entity.BPFInstanceEntityName string

Business process flow instance table name.

BPF Definition Id
entity.BPFDefinitionId string

Business process flow definition id.

BPF Definition Table Name
entity.BPFDefinitionEntityName string

Business process flow definition table name.

Step Id
entity.StepId string

Business process flow step id.

BPF Definition Name
entity.BPFDefinitionName string

Business process flow definition name.

BPF Instance Name
entity.BPFInstanceName string

Business process flow instance name.

BPF Flow Stage Localized Name
entity.BPFFlowStageLocalizedName string

Business process flow stage localized name.

BPF Flow Stage Table Name
entity.BPFFlowStageEntityName string

Business process flow stage table name.

BPF Flow Stage Table Collection Name
entity.BPFFlowStageEntityCollectionName string

Business process flow stage table collection name.

BPF Flow Stage Table Row Id
entity.BPFFlowStageEntityRecordId string

Business process flow stage table row id.

BPF Active Stage Id
entity.BPFActiveStageId string

Business process flow active stage id.

BPF Active Stage Table Name
entity.BPFActiveStageEntityName string

Business process flow active stage table name.

BPF Active Stage Localized Name
entity.BPFActiveStageLocalizedName string

Business process flow active stage localized name.

When a row is added, modified or deleted

This trigger allows you to start a flow when a row is added, modified or deleted in a Common Data Service table, such that it matches the selected options.

Parameters

Name Key Required Type Description
Change type
message True integer

Choose when the flow triggers

Table name
entityname True string

Choose a table

Scope
scope True integer

Choose a scope to limit which rows can trigger the flow

Column filter
filteringattributes string

Enter a comma-separated list of column unique names. The flow triggers if any of them are modified

Row filter
filterexpression string

Enter an OData style filter expression to determine which rows can trigger the flow

Delay until
postponeuntil string

Enter a time to delay the trigger evaluation, eg. 2020-01-01T10:10:00Z

Run as
runas integer

Choose the running user for steps where invoker connections are used

Returns

A Table item.

Definitions

EntityItemList

List of tables

Name Path Type Description
value
value array of EntityItem

List of Items

Next link
@odata.nextLink string

The url to fetch next page data.

EntityItem

A Table item

Name Path Type Description
dynamicProperties
dynamicProperties object

Object

WebhookNotificationContent

A Table item.

Name Path Type Description
schema
schema Object

object

This is the type 'object'.

binary

This is the basic data type 'binary'.