Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 creating a Virtual entity linked to CosmosDB

(0) ShareShare
ReportReport
Posted on by 57

I've read the documentation on creating virtual entities and CosmosDB data sources but it's still unclear to me what's the External Name and External Collection Name of the Virtual Entity because the msdn documentation refers to the 'table name' but, as you know, CosmosDB doesn't really have tables, rather collections and documents.

This is what my CosmosDB portal shows (I had to obfuscate the text - sorry for this) :

2262.Azure.png

So, is the External Name, (1) 'MyData'

or (2) 'CollectionName'

or even (3) 'Documents'

Also, which is the External Collection Name in this case? (the use of 'Collection' is very confusing now in relation to the CosmosDB data source).

*This post is locked for comments

  • Verified answer
    cristina_b Profile Picture
    57 on at
    RE: Dynamics 365 creating a Virtual entity linked to CosmosDB

    After a lot of digging up, I found the answer in the comments of the microsoft documentation: docs.microsoft.com/.../virtual-entity-documentdb-provider-requirements.

    Apparently Nicolas Nowinski found the issues in Microsoft's documentation and shared the solution with the community - why Microsoft didn't update its documentation in the light of this findings, totally eludes me:

    'Additional/Corrected Details Needed to Successfully Get the Provider Working

    Configure Cosmos DB for the SQL API.

    Azure Cosmos DB Data Source:

    1. The Collection Name value is actually supposed to be the Database name.

    2. Take Authorization Key and Uri from the Read-only tab in the portal.

    Entity Configuration

    External Name and External Collection Name should be the same value. That value is the Collection name in CosmosDB.'

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans