Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, everyone
I'm struggling trying to create a datasource in a gateway. Credentials I'm going to use are basic.
I think the problem could be how I have created the body. This is the code.
$body =
@{value =
@{connectionDetails = @("http://localhost/DynamicsNAV110/OData/")
datasourceName = @("URL Base ODATA")
dataSourceType = @("OData")
credentialDetails = @(
@{credentialType = "Basic"
credentials = '{\"credentialData\":[{\"name\":\"username\", \"value\":\"john\"},{\"name\":\"password\", \"value\":\"*****\"}]}'
encryptedConnection = "Encrypted"
encryptionAlgorithm = "None"
privacyLevel = "None"
}
)
}
}
Can anyone help me with this, please???..
Thanks,
I have the same error. Anyone?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |