> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bindToDatasourceConnection

> Binds a datasource to an already existing connection in Power BI for a specific object. Target Properties Property Name Property Code Required Descrip

Binds a datasource to an already existing connection in Power BI for a specific object.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Azure Power BI Account</td><td>`FDPBI_ACCOUNT_CODE`</td><td>No</td><td>The Power BI Cloud Account\
</td></tr><tr><td>Azure Power BI Workspace ID</td><td>`FDPBI_TGT_WORKSPACE_ID`</td><td>No\
</td><td>Workspace Id of the Power BI content</td></tr><tr><td>Azure Power BI Workspace Name</td><td>`FDPBI_TGT_WORKSPACE_NAME`</td><td>No</td><td>Workspace Name of the Power BI content. (Workspace Name is case-sensitive)</td></tr><tr><td>On-Premise Gateway Id</td><td>`FDPBI_TGT_ONPREM_GATEWAY_ID`</td><td>No</td><td /></tr></tbody></table>

# Project Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Binding Parameters</td><td>`FDPBI_BINDING_PARAMS`</td><td>Yes</td><td>JSON input map.<pre>\{
"bindingParameters": \[
\{
"objectNames": \[
"input1","input2"
],
"connection": "\$\{\{connectionIdOrName}}"
}
]
}</pre></td></tr></tbody></table>

> [!NOTE]
>
> Need to provide only connection ID or name in the Connection details.
>
> Object names is the Semantic Model Name

# Inputs

<table><colgroup><col /><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th><th /></tr><tr><td>Power BI Account</td><td>`FDPBI_INP_ACCOUNT_CODE`</td><td>No\
</td><td>Power BI Cloud account</td><td /></tr><tr><td>Binding Parameters</td><td>`FDPBI_INP_BINDING_PARAMS`</td><td>Yes</td><td>JSON input map.</td><td><pre>\{
"bindingParameters": \[
\{
"objectNames": \[
"input1","input2"
],
"connection": "\$\{\{connectionIdOrName}}"
}
]
}</pre></td></tr><tr><td>Include Objects</td><td>`FDPBI_INP_INCLUDE_OBJECTS`</td><td>No</td><td>CSV list of specific objects. (Standard Project)semanticModel1,semanticModel2For Package based project, when using this operation in workflow, it will pick up object names corresponding to package files having “Update Credentials” ticked. </td><td /></tr></tbody></table>

# Artifacts

This operation doesn’t consume or produce any artifacts.

# Endpoint Selection

This operation delegates the selection to the workflow developer to determine.

# Endpoint Execution

This operations delegates the execution to the workflow developer to decide.
