Udostępnij za pośrednictwem


IncrementKnowledgeArticleViewCountRequest Class

Definition

Contains the data that is required to increment the per day view count of a knowledge article record.

public ref class IncrementKnowledgeArticleViewCountRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class IncrementKnowledgeArticleViewCountRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type IncrementKnowledgeArticleViewCountRequest = class
    inherit OrganizationRequest
Public NotInheritable Class IncrementKnowledgeArticleViewCountRequest
Inherits OrganizationRequest
Inheritance
IncrementKnowledgeArticleViewCountRequest
Attributes

Remarks

For the Web API use the IncrementKnowledgeArticleViewCount function.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of the IncrementKnowledgeArticleViewCountResponse class.

Privileges and Access Rights

To perform this action, the caller must have privileges on the KnowledgeArticle entity. For a complete list of the required privileges, see IncrementKnowledgeArticleViewCount message privileges.

Notes for Callers

If a view count record doesn’t exist for a knowledge article for a specified day, this message will create a record and then set the specified view count value. If a record already exists for a knowledge article for the specified day, this message will just increment the view count in the existing record with the specified view count.

Constructors

IncrementKnowledgeArticleViewCountRequest()

Initializes a new instance of the IncrementKnowledgeArticleViewCountRequest class.

Properties

Count

Gets or sets the view count of a knowledge article record. Required.

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
Location

Gets or sets the location where the knowledge article record was used.

Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
Source

Gets or sets the knowledge article record for incrementing the view count. Required.

ViewDate

Gets or sets the date for which the view count has to be incremented.

Applies to