Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RetrieveByTopIncidentProductKbArticle Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Works for all deployment typesWorks online and offline

Retrieves the top ten knowledge base articles for the specified product.

The relevant classes are specified in the following table.



To use this message, pass an instance of the RetrieveByTopIncidentProductKbArticle class as the request parameter in the Execute method.

To perform this action, the caller must have access rights on the knowledge base article entity instance. For a list of required privileges, see RetrieveByTopIncidentProductKbArticle Privileges.


The following code example shows how to use the RetrieveByTopIncidentProductKbArticle message.

// Set up the CRM service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0; 
token.OrganizationName = "AdventureWorksCycle";
CrmService service = new CrmService();
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the request.
RetrieveByTopIncidentProductKbArticleRequest byTopProductRequest = new RetrieveByTopIncidentProductKbArticleRequest();
byTopProductRequest.ProductId = new Guid("314A7C27-BF05-DD11-9792-0003FFBAD2C7");
byTopProductRequest.ReturnDynamicEntities = false;

RetrieveByTopIncidentProductKbArticleResponse byTopProductResponse = (RetrieveByTopIncidentProductKbArticleResponse)service.Execute(byTopProductRequest);
[Visual Basic .NET]
' Set up the CRM service.
Dim token As New CrmAuthenticationToken()
' You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0
token.OrganizationName = "AdventureWorksCycle"
Dim service As New CrmService()
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx"
service.CrmAuthenticationTokenValue = token
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the request.
Dim byTopProductRequest As New RetrieveByTopIncidentProductKbArticleRequest()
byTopProductRequest.ProductId = New Guid("314A7C27-BF05-DD11-9792-0003FFBAD2C7")
byTopProductRequest.ReturnDynamicEntities = False

Dim byTopProductResponse As RetrieveByTopIncidentProductKbArticleResponse = CType(service.Execute(byTopProductRequest), RetrieveByTopIncidentProductKbArticleResponse)

See Also



© 2010 Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.