Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Add Paging for Virtual Entities with a custom data provider

(0) ShareShare
ReportReport
Posted on by 6

We have implemented a solution for our client that archives activities from Dynamics 365 to an Azure Cosmos DB. We are displaying the archived activities from the Azure Cosmos DB using their REST API within a Dynamics 365 plugin and a Virtual Entity. We recently tried to implement paging, but found that the Azure Cosmos DB only supports it using this method: Querying Azure Cosmos DB resources using the REST API | Microsoft Docs

Since that method requires a response token to retrieve the next page and Dynamics 365 plugins cannot receive responses, we're looking to understand what other options are available for us to implement paging with the Azure Cosmos data within Dynamics 365 using supported methods.

  • JessonCoock Profile Picture
    JessonCoock 22 on at
    Add Paging for Virtual Entities with a custom data provider
    To add paging with Azure Cosmos DB data in Dynamics 365, you can try a custom paging approach. Use the continuation token from the Cosmos DB API to fetch the next set of results in multiple requests, and store the token in a custom field or entity to manage paging in your plugin. This way, you can handle paging without needing direct responses. 
  • Verified answer
    JessonCoock Profile Picture
    JessonCoock 22 on at
    Add Paging for Virtual Entities with a custom data provider
    To handle paging, consider using Azure Functions as a middle layer. The function can query Cosmos DB, handle the continuation token, and return paged data to Dynamics 365.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans