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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Query customer profiles from customer service

(0) ShareShare
ReportReport
Posted on by 61

Hi.

I have Customer Insigth, and Customer Service environment.

In Customer Insigth, there are 4.5M profiles.

From Customer service, We are quering profiles, using the native virtual table msdynci_customerprofie, filtering by and attribute, de customer's document number.

This where working well en our dev environment, with less profiles, but in our pre production environmnet, We found this problem.

And example of the query in a plugin.

var query_msdynci_rut = "1111111-1";
var query = new QueryExpression("msdynci_customerprofile");
query.TopCount = 1;
query.ColumnSet.AddColumns("msdynci_email", "msdynci_last_name", "msdynci_fst_name", "msdynci_rut", "msdynci_customerid", "msdynci_customerprofileid");
query.Criteria.AddCondition("msdynci_rut", ConditionOperator.Equal, query_msdynci_rut);

This ended up in a timeout.

It also happens if I try to filter by de primary key, the msdynci_customerprofileid 

Why Customer insigth is not capable to respond to such simple query?

I have the same question (0)
  • Bill Ryan Profile Picture
    8 on at

    CI should be able to respond to simple queries for sure. Can you get any queries to work yet against it? Just to confirm you have the right endpoint and the handshakes are working as expected.  I have an instance with 9 million I can try a simliar query against later today.  usually used the OData api to query against CI, haven't tried it this way but I'll give it a try a little later.

  • DGA205 Profile Picture
    61 on at

    I couldn't use the CI Odata Api directrly, because it cant filter the customerprofile entity by other attribute than customerid, see this Example odata query. For example some like this:

    {serviceRoot}/Customer?$filter=documentnumber eq '123456' 

    In Customer Service, We don't have the customerid, for that reason, We need to query CI, and the native integration between Customer Service and Customer Inisgth, is the virtual table, that CI create in CS.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 120 Super User 2026 Season 1

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 46 Most Valuable Professional

#3
NeerajPawar Profile Picture

NeerajPawar 41

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans