CreateChannel: Create a new Channel

Tag: CreateChannel

The CreateChannel function automates the Team Channel creation process.


XML
	<SetVar ChannelName="Shark1496"/>
	<SetVar ChannelDES="Shark1496"/>
	<CreateChannel >
		<SetParam Field="membershipType" Value="Standard"/>
		<SetParam Field="description" Value="{%ChannelDES%}"/>
		<SetParam Field="displayName" Value="{%ChannelName%}"/>
		<SetParam Field="isFavoriteByDefault" Value="true"/>
	</CreateChannel>

Tag Attributes


Attributes

Attribute Values

Value Description

displayName

Channel display name


description

Channel description


membershipType

Private/Standard


isFavoriteByDefault

False/True

when membershipType is Standard

owner

owner of the channel

when membershipType is Private; User's ID


Example Script

XML
<ytriaAutomation Application="sapio365">
	<OnError Continue="true"/>
	<SetVar ChannelName="Shark1496"/>
	<SetVar ChannelDES="Shark1496"/>
	<CreateChannel >
		<SetParam Field="membershipType" Value="Private"/>
		<SetParam Field="description" Value="{%ChannelDES%}"/>
		<SetParam Field="displayName" Value="{%ChannelName%}"/>
		<SetParam Field="owner" Value="be32fe55-82f9-4cc3-9008-ff969d6c07a9"/>
	</CreateChannel>
</ytriaAutomation>