> ## 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.

# updateDatasourcesConnections

> Updates the data sources connections for the objects from the specified workspace. Target Properties Property Name Property Code Required Description

Updates the data sources connections for the objects from the specified workspace.

# 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></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>Connections Details</td><td>`FDPBI_CONNECTIONS_DETAILS`</td><td>No</td><td>Provide the json input. (See example in Inputs)<ul local-id="bde67a1cc31c"><li local-id="b6c7fcba84f5">filterCriteria - Only mandatory when the object e.g: semantic model, has multiple datasources as cloud and/or gateway connections. One can specify search string e.g. “demobi-server”, corresponding to current server or database name, for which to update.</li></ul></td></tr><tr><td>Connections Details File Path</td><td>`FDPBI_CONNECTIONS_FILE_PATH`</td><td>No</td><td>The File Path specifying the connections details.The default is 'connections-properties.json' in the FD\_ARTIFACTS\_DIR.</td></tr></tbody></table>

# 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>Azure Power BI Account</td><td>`FDPBI_INP_ACCOUNT_CODE`</td><td>No</td><td>The Power BI Cloud Account</td><td /></tr><tr><td>Connections Details</td><td>`FDPBI_INP_CONNECTIONS_DETAILS`</td><td>No</td><td>Provide the json input.<ul local-id="be592e54b455"><li local-id="39831d415d23">filterCriteria - Only mandatory when the the object e.g: semantic model, has multiple datasources as cloud and/or gateway connections. One can specify search string e.g. “demobi-server”, corresponding to current server or database name, for whom to update.</li></ul></td><td><pre>\{
"connectionsDetails": \[
\{
"objectNames": \[
"input1",
"input2"
],
"filterCriteria": "searchString",
"newserver": "$\{\{MySemanticModelServer\}\}",
			"newdatabase": "$\{\{MySemanticModelDatabase}}"
},
\{
"objectNames": \[
"input1",
"input2"
],
"filterCriteria": "searchString",
"newurl": "\$\{\{MySemanticModelConnUrl}}"
}
]
}</pre></td></tr><tr><td>Connections Details File Path</td><td>`FDPBI_INP_CONNECTIONS_FILE_PATH`</td><td>No</td><td>The File Path specifying the connections details.The default is 'connectionsPlan.json' in the FD\_ARTIFACTS\_DIR.</td><td>Provide either this or `FDPBI_INP_CONNECTIONS_DETAILS`</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.
