Skip to content

Commit ed2e4f8

Browse files
committed
README: fix 6431971
1 parent cfb348b commit ed2e4f8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,10 +839,13 @@ pip install "PowerPlatform-Dataverse-Client[async]"
839839

840840
```python
841841
import asyncio
842-
from azure.identity.aio import DefaultAzureCredential
842+
from azure.identity import InteractiveBrowserCredential
843843
from PowerPlatform.Dataverse.aio import AsyncDataverseClient
844844

845845
async def main():
846+
# Connect to Dataverse
847+
credential = InteractiveBrowserCredential()
848+
846849
async with DefaultAzureCredential() as credential:
847850
async with AsyncDataverseClient("https://yourorg.crm.dynamics.com", credential) as client:
848851
# Create a contact

0 commit comments

Comments
 (0)