Export (0) Print
Expand All
Expand Minimize

MakeUnavailableToOrganizationReport Message (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Works for all deployment typesWorks online only

Makes the report unavailable to all users in the organization.

The relevant classes are specified in the following table.

TypeClass
RequestMakeunavailableToOrganizationReportRequest
ResponseMakeunavailableToOrganizationReportResponse
Entityreport

Remarks

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

To perform this action, the caller must have Update access rights on the report entity instance. For a list of required privileges, see MakeunavailableToOrganizationReport Privileges.

Example

[C#]
// 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 a request.
MakeUnavailableToOrganizationReportRequest unavailableToOrgRequest = new MakeUnavailableToOrganizationReportRequest();
// This is the built-in report "Account Overview"
unavailableToOrgRequest.ReportId = new Guid("A8228F55-A868-DC11-9F6D-0003FFA48E24");

// Execute the request
MakeUnavailableToOrganizationReportResponse unavailableToOrgResponse = (MakeUnavailableToOrganizationReportResponse)crmService.Execute(unavailableToOrgRequest);
[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 a request.
Dim unavailableToOrgRequest As New MakeUnavailableToOrganizationReportRequest()
' This is the built-in report "Account Overview"
unavailableToOrgRequest.ReportId = New Guid("A8228F55-A868-DC11-9F6D-0003FFA48E24")

' Execute the request.
Dim unavailableToOrgResponse As MakeUnavailableToOrganizationReportResponse = CType(crmService.Execute(unavailableToOrgRequest), MakeUnavailableToOrganizationReportResponse)

See Also

Concepts


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft