web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Add Paging for Virtual Entities with a custom data provider

(2) ShareShare
ReportReport
Posted on by 16

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.

I have the same question (0)
  • Verified answer
    JessonCoock Profile Picture
    26 on at
    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.
  • JessonCoock Profile Picture
    26 on at
    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. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 38 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans