This documentation is archived and is not being maintained.

MakeAvailableToOrganizationReport Message (CrmService)

Dynamics
banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Works for all deployment typesWorks online only

Makes the report available to all users in the organization.

The relevant classes are specified in the following table.

TypeClass
RequestMakeAvailableToOrganizationReportRequest
ResponseMakeAvailableToOrganizationReportResponse
Entityreport

Remarks

To use this message, pass an instance of the MakeAvailableToOrganizationReportRequest 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 MakeAvailableToOrganizationReport 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.
MakeAvailableToOrganizationReportRequest availableToOrgRequest = new MakeAvailableToOrganizationReportRequest();
availableToOrgRequest.ReportId = new Guid("687D852C-9C77-DC11-AE08-0003FFA48E24");

// Execute the request
MakeAvailableToOrganizationReportResponse availableToOrgResponse = (MakeAvailableToOrganizationReportResponse)crmService.Execute(availableToOrgRequest);
[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 availableToOrgRequest As New MakeAvailableToOrganizationReportRequest()
availableToOrgRequest.ReportId = New Guid("687D852C-9C77-DC11-AE08-0003FFA48E24")

' Execute the request.
Dim availableToOrgResponse As MakeAvailableToOrganizationReportResponse = CType(crmService.Execute(availableToOrgRequest), MakeAvailableToOrganizationReportResponse)

See Also

Concepts


© 2010 Microsoft Corporation. All rights reserved.


Show: