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

Set-CrmWebresource

Synopsis

Update a Webresource

Syntax

Set-CrmWebresource [-Id] <Guid> [-DisplayName <String>] [-Description <String>] [-IsCustomizable <Nullable`1[Boolean]>] [<CommonParameters>]

Set-CrmWebresource [-Id] <Guid> [-DisplayName <String>] [-Description <String>] [-Content <Byte[]>] [-IsCustomizable <Nullable`1[Boolean]>] [<CommonParameters>]

Set-CrmWebresource [-Id] <Guid> [-DisplayName <String>] [-Description <String>] [-Path <String>] [-IsCustomizable <Nullable`1[Boolean]>] [-Encoding <FileSystemCmdletProviderEncoding>] [<CommonParameters>]

Description

Update the metadata and/or content of a webresource.

Parameters

-Id <Guid>

The ID of the webresource to update.

Required? True
Position? 1
Default value  
Accept pipeline input? true (ByValue)
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

-IsCustomizable <Nullable`1[Boolean]>

Set the Customizable managed property.

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

-Content <Byte[]>

In memory byte-array to set the content to.

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? False
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

Update Webresource

PS C:\> Set-CrmWebresource -Id 1942B757-63B3-416F-A724-5E8613291236 -Displayname 'solution.js'

Update the displayname of the webresource.

Related links

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