-1

我有 CRM 工具。我需要使用默认过滤器(如网站、联系人和地址)从搜索页面搜索客户,这是搜索结果并将其放在 JSP 中的用户端的最佳方式。任何人都可以解释请求流程和最佳设计模式吗?

4

1 回答 1

0

您需要为此创建ConditionalExpression和创建FilterExpression。这是一段代码,您将在其中得到一个想法。

这是文档

        ConditionExpression condition = new ConditionExpression();  //to check whether an email already exist
        condition.AttributeName = "emailaddress1"; 
        condition.Operator = ConditionOperator.Equal;
        condition.Values = new string[] { "any email address"};

        FilterExpression filter = new FilterExpression();
        filter.FilterOperator = LogicalOperator.And;
        filter.Conditions = new ConditionExpression[] { condition };

        QueryExpression query = new QueryExpression();   //to specify which entity
        query.EntityName = EntityName.contact.ToString();
        query.ColumnSet = new AllColumns();
        query.Criteria = filter;    //here applying the filter

        BusinessEntityCollection app = service.RetrieveMultiple(query);
于 2013-01-31T04:23:48.380 回答