ExportSolutionRequest Class

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Contains the data that is needed to export a solution.

Namespace: Microsoft.Crm.Sdk.Messages
Assembly: Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)

Syntax

'Declaration
<DataContractAttribute(Namespace:="https://schemas.microsoft.com/crm/2011/Contracts")> _
Public NotInheritable Class ExportSolutionRequest
    Inherits OrganizationRequest
[DataContractAttribute(Namespace="https://schemas.microsoft.com/crm/2011/Contracts")] 
public sealed class ExportSolutionRequest : OrganizationRequest

Example

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. For the complete sample, see the link later in this topic.

// Export or package a solution
//Export an a solution

ExportSolutionRequest exportSolutionRequest = new ExportSolutionRequest();
exportSolutionRequest.Managed = false;
exportSolutionRequest.SolutionName = solution.UniqueName;

ExportSolutionResponse exportSolutionResponse = (ExportSolutionResponse)_serviceProxy.Execute(exportSolutionRequest);

byte[] exportXml = exportSolutionResponse.ExportSolutionFile;
string filename = solution.UniqueName + ".zip";
File.WriteAllBytes(outputDir + filename, exportXml);

Console.WriteLine("Solution exported to {0}.", outputDir + filename);
' Export or package a solution
'Export an a solution

Dim exportSolutionRequest As New ExportSolutionRequest()
exportSolutionRequest.Managed = False
exportSolutionRequest.SolutionName = solution.UniqueName

Dim exportSolutionResponse As ExportSolutionResponse =
 CType(_serviceProxy.Execute(exportSolutionRequest), ExportSolutionResponse)

Dim exportXml() As Byte = exportSolutionResponse.ExportSolutionFile
Dim filename As String = solution.UniqueName & ".zip"
File.WriteAllBytes(outputDir & filename, exportXml)

Console.WriteLine("Solution exported to {0}.", outputDir & filename)

Remarks

Message Availability

For this message to work, the caller must be connected to the server.

Usage

Pass an instance of this class to the Execute method, which returns an instance of ExportSolutionResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges listed in ExportSolution Privileges.

Notes for Callers

The properties of this request correspond to the options in the export solution dialog box in the application. The following table describes the settings included with each of the Export* settings.

Member Setting Display Name Description

ExportAutoNumberingSettings

Organization.CampaignPrefix

Campaign Prefix

Prefix used for campaign numbering.

Organization.CasePrefix

Case Prefix

Prefix to use for all cases throughout Microsoft Dynamics CRM.

Organization.ContractPrefix

Contract Prefix

Prefix to use for all contracts throughout Microsoft Dynamics CRM.

Organization.InvoicePrefix

Invoice Prefix

Prefix to use for all invoice numbers throughout Microsoft Dynamics CRM.

Organization.KbPrefix

Article Prefix

Prefix to use for all articles in Microsoft Dynamics CRM.

Organization. OrderPrefix

Order Prefix

Prefix to use for all orders throughout Microsoft Dynamics CRM.

Organization.UniqueSpecifierLength

Unique String Length

Number of characters appended to invoice, quote, and order numbers.

ExportCalendarSettings

Organization.CalendarType

Calendar Type

Calendar type for the system. Set to Gregorian US by default.

Organization.DateFormatCode

Date Format Code

Information about how the date is displayed throughout Microsoft CRM.

Organization.DateSeparator

Date Separator

Character used to separate the month, the day, and the year in dates throughout Microsoft Dynamics CRM.

Organization.MaxAppointmentDurationDays

Max Appointment Duration

Maximum number of days an appointment can last.

Organization.ShowWeekNumber

Show Week Number

Information that specifies whether to display the week number in calendar displays throughout Microsoft CRM.

Organization.TimeFormatCode

Time Format Code

Information that specifies how the time is displayed throughout Microsoft CRM.

Organization.WeekStartDayCode

Week Start Day Code

Designated first day of the week throughout Microsoft Dynamics CRM.

ExportCustomizationSettings

Organization.IsAppMode

Is Application Mode Enabled

Indicates whether loading of Microsoft Dynamics CRM in a browser window that does not have address, tool, and menu bars is enabled.

ExportEmailTrackingSettings

Organization.AllowUnresolvedPartiesOnEmailSend

Allow Unresolved Address E-mail Send

Indicates whether users are allowed to send e-mail to unresolved parties (parties must still have an e-mail address).

Organization.IgnoreInternalEmail

Ignore Internal E-mail

Indicates whether incoming e-mail sent by internal Microsoft Dynamics CRM users or queues should be tracked.

Organization.MaximumTrackingNumber

Max Tracking Number

Maximum tracking number before recycling takes place.

Organization.RenderSecureIFrameForEmail

Render Secure Frame For E-mail

Flag to render the body of e-mail in the Web form in an IFRAME with the security='restricted' attribute set. This is additional security but can cause a credentials prompt.

Organization.TrackingPrefix

Tracking Prefix

History list of tracking token prefixes.

Organization.TrackingTokenIdBase

Tracking Token Base

Base number used to provide separate tracking token identifiers to users belonging to different deployments.

Organization.TrackingTokenIdDigits

Tracking Token Digits

Number of digits used to represent a tracking token identifier.

ExportGeneralSettings

Organization.BlockedAttachments

Block Attachments

Prevent upload or download of certain attachment types that are considered dangerous.

Organization.CurrencyFormatCode

Currency Format Code

Information about how currency symbols are placed throughout Microsoft Dynamics CRM.

Organization.CurrencySymbol

Currency Symbol

Currency Symbol

Organization.FullNameConventionCode

Full Name Display Order

Order in which names are to be displayed throughout Microsoft CRM.

Organization.GetStartedPaneContentEnabled

Is Get Started Pane Content Enabled

Indicates whether Get Started content is enabled for this organization.

Organization.IsPresenceEnabled

Presence Enabled

Information on whether IM presence is enabled.

Organization.NegativeFormatCode

Negative Format

Information that specifies how negative numbers are displayed throughout Microsoft CRM.

Organization.NumberFormat

Number Format

Specification of how numbers are displayed throughout Microsoft CRM.

Organization.PricingDecimalPrecision

Pricing Decimal Precision

Number of decimal places that can be used for prices.

Organization.ShareToPreviousOwnerOnAssign

Share To Previous Owner On Assign

Information that specifies whether to share to previous owner on assign.

ExportIsvConfig

The XML representing the ISV.Config.

ExportMarketingSettings

Organization.AllowAutoResponseCreation

Allow Automatic Response Creation

Indicates whether automatic response creation is allowed.

Organization.AllowAutoUnsubscribe

Allow Automatic Unsubscribe

Indicates whether automatic unsubscribe is allowed.

Organization.AllowAutoUnsubscribeAcknowledgement

Allow Automatic Unsubscribe Acknowledgement

Indicates whether automatic unsubscribe acknowledgement e-mail is allowed to send.

Organization.AllowMarketingEmailExecution

Allow Marketing E-mail Execution

Indicates whether marketing e-mails execution is allowed.

ExportOutlookSynchronizationSettings

Organization.AllowAddressBookSyncs

Allow Address Book Synchronization

Indicates whether background address book synchronization in Microsoft Office Outlook is allowed.

Organization.AllowOfflineScheduledSyncs

Allow Offline Scheduled Synchronization

Indicates whether background offline synchronization in Microsoft Office Outlook is allowed.

Organization.AllowOutlookScheduledSyncs

Allow Scheduled Synchronization

Indicates whether scheduled synchronizations to Outlook are allowed.

Organization.EmailSendPollingPeriod

E-mail Send Polling Frequency

Normal polling frequency used for sending e-mail in Microsoft Office Outlook.

Organization.MinAddressBookSyncInterval

Min Address Synchronization Frequency

Normal polling frequency used for address book synchronization in Microsoft Office Outlook.

Organization.MinOfflineSyncInterval

Min Offline Synchronization Frequency

Normal polling frequency used for background offline synchronization in Microsoft Office Outlook.

Organization.MinOutlookSyncInterval

Min Synchronization Frequency

Minimum allowed time between scheduled Outlook synchronizations.

Organization.TagMaxAggressiveCycles

Auto-Tag Max Cycles

Maximum number of aggressive polling cycles executed for e-mail auto-tagging when a new e-mail is received.

Organization.TagPollingPeriod

Auto-Tag Interval

Normal polling frequency used for e-mail receive auto-tagging in outlook.

Inheritance Hierarchy

System.Object
   Microsoft.Xrm.Sdk.OrganizationRequest
    Microsoft.Crm.Sdk.Messages.ExportSolutionRequest

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

Change History

See Also

Reference

ExportSolutionRequest Members
Microsoft.Crm.Sdk.Messages Namespace

Other Resources

Sample: Work With Solutions
Package and Distribute Extensions with Microsoft Dynamics CRM Solutions

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.