Content

Manage the content in the Content Store, that can be used as icons or as uploaded content associated with actions.

Get-LiquitContent

This command downloads a file or folder from the Content Store.

Syntax

 Get-LiquitContent 
	[-ID] <guid[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

 Get-LiquitContent 
	[-EntityRef] <EntityRef[]> 
	[-LiquitContext <LiquitContext>]  
	[<CommonParameters>]

Example

This command downloads a specific item from the Content Store:

 Get-LiquitContent -id 00000000-0000-0000-0000-000000000000

Parameters

NameValueDescriptionRequiredDefault value
ID<guid[]>The ID of the content that needs to be downloaded.Yes
EntityRef<EntityRef[]>Represents the item it is assigned to. e.g. if the content is for a package, then this is the reference of the package.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault




New-LiquitContent

This command uploads a file or folder to the Content Store.

Syntax

 New-LiquitContent 
	[-Path] <string> 
	[-FileName <string>]
 	[-Resize]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

This command uploads all files and folders located in C:\test\ to the Content Store:

 New-LiquitContent -Path "C:\test\"

This command uploads the test.txt file located in C:\test\ to the Content Store:

 New-LiquitContent -Path "C:\test\test.txt"

This command uploads icon.png located in C:\test\ to the Content Store:

 New-LiquitContent -Path "C:\test\icon.png" -Resize $true

Parameters

NameValueDescriptionRequiredDefault value
Path<Certifcate[]>The path of the file or folder you want to upload.Yes
FileName<string>The filename that will be used to store the file on the server.No
LiquitContext<LiquitContext>Determines the selected zone.NoDefault




Export-LiquitContent

This command exports the selected content.

Syntax

 Export-LiquitContent 
	[-Content] <Content> 
	[-Path] <string> 
	[-Extract]
	[-LiquitContext <LiquitContext>] 
	[-WhatIf] 
	[-Confirm]  
	[<CommonParameters>]

Examples

The following script retrieves a specific Application Workspace content item by its ID and exports it to a .pxf file at C:\temp\ExportContent.pxf.

 $content  = Get-LiquitContent -ID 00000000-0000-0000-0000-000000000000
 Export-LiquitContent -content $content  -path C:\temp\ExportContent.pxf

The following script retrieves the icon from a Application Workspace package using its ID and saves it as package.ico in the current directory:

 Export-LiquitContent -Content (Get-LiquitPackage -id 00000000-0000-0000-0000-000000000000).icon -path package.ico

Parameters

NameValueDescriptionRequiredDefault value
Content<Content>The content you want to export.Yes
Path<string>The path where the content needs to be stored locally.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault