开发者

Retrieve Campaigns Microsoft Dynamic CRM 3.0

does anybody knows how to get (programmatically - C#) the list (and details) of campaigns on Microsoft CRM 3.0 (using the webservice CRM Service) ??

开发者_如何学GoAny help or documentation link would be appreciated.

Thanks in advance.


If somebody is interested, I found out how to get campaigns from Microsoft CRM 3.0 using the webservice. Here is the code.

        fetchFilter += @"<fetch mapping='logical'>";
        fetchFilter += @"<entity name='campaign'><all-attributes/>";
        fetchFilter += @"<link-entity name='systemuser' to='owninguser'>";
        fetchFilter += @"<filter type='and'>";
        fetchFilter += @"<condition attribute='firstname' operator='eq' value='" + firstName + "' />";
        fetchFilter += @"<condition attribute='lastname' operator='eq' value='" + lastName + "' />";
        fetchFilter += @"</filter>";
        fetchFilter += @"</link-entity>";
        fetchFilter += @"</entity>";
        fetchFilter += @"</fetch>";

        XmlDocument xmldoc = new XmlDocument();
        xmldoc.LoadXml(CrmWebService.Fetch(fetchFilter));

Hope it will be useful for somebody. Bye.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜