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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 79 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans