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

# updateDatasourceCredentials

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

Updates the data sources credentials 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>Credentials Details</td><td>`FDPBI_CREDENTIALS_DETAILS`</td><td>No</td><td>Provide the json input.<ul><li>filterCriteria - Only mandatory when the object e.g: semantic model, has multiple datasources as cloud 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>Credentials Details File Path</td><td>`FDPBI_CREDENTIALS_FILE_PATH`</td><td>No</td><td>The File Path specifying the connections details.The default is 'credentials-properties.json' in the FD\_ARTIFACTS\_DIR.</td></tr></tbody></table>

> [!NOTE]
>
> In Credential Details, Any Personal Access Token type credential goes as type “key”

# 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>Credentials Details</td><td>`FDPBI_INP_CREDENTIALS_DETAILS`</td><td>No</td><td>Provide the json input.<ul><li>filterCriteria - Only mandatory when the object e.g: semantic model, has multiple datasources as cloud connections. One can specify search string e.g. “demobi-server”, corresponding to current server or database name, for which to update.</li></ul></td><td><pre>\{
"credentialsDetails": \[
\{
"objectNames": \[
"input1",
"input2"
],
"filterCriteria": "searchString",
"username": "$\{\{dbusername\}\}",
			"password": "$\{\{dbpassword}}"
},
\{
"objectNames": \[
"input1",
"input2"
],
"filterCriteria": "searchString",
"key": "$\{\{key/PAT\}\}"
		\},
		\{
			"objectNames": [
				"input1",
				"input2"
			],
			"filterCriteria": "searchString",
			"sas": "$\{\{sastoken}}"
}
]
}</pre></td></tr><tr><td>Credentials Details File Path</td><td>`FDPBI_INP_CREDENTIALS_FILE_PATH`</td><td>No</td><td>The File Path specifying the connections details.The default is 'credentials-properties.json' in the FD\_ARTIFACTS\_DIR.</td><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.
