This project has moved. For the latest updates, please go here.

New-CrmWebresource

Synopsis

Create a webresource

Syntax

New-CrmWebresource [-Name] <String> [-DisplayName <String>] [-Description <String>] -WebresourceType <CrmWebresourceType> -Content <Byte[]> [-IsCustomizable <Nullable`1[Boolean]>] [<CommonParameters>]

New-CrmWebresource [-Name] <String> [-DisplayName <String>] [-Description <String>] -WebresourceType <CrmWebresourceType> -Path <String> [-IsCustomizable <Nullable`1[Boolean]>] [-Encoding <FileSystemCmdletProviderEncoding>] [<CommonParameters>]

Description

Create a new Webresource and set the content

Parameters

-Name <String>

The uniquename for the Webresource

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-DisplayName <String>

New Displayname of the Webresource.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Description <String>

New Description of the Webresource.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-WebresourceType <CrmWebresourceType>

The type of webresource to create.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Content <Byte[]>

In memory byte-array to set the content to.

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-IsCustomizable <Nullable`1[Boolean]>

Set the Customizable managed property.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Path <String>

The path to a file to content the new content for the webresource from.

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Encoding <FileSystemCmdletProviderEncoding>

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Microsoft.Xrm.Sdk.Entity

Notes

Examples

New Webresource

PS C:\> New-CrmWebresource -Name ams_solution.js -WebresourceType JS -Displayname solution.js -Path c:\temp\solution.js -Encoding Default

Create a new webresource named 'ams_solution.js' and set the content from the solution.js file.

Related links

Last edited Mar 11 at 7:03 PM by amsoftware, version 2