Skip to main content
Skip table of contents

Create: Team 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
displayNameChannel display name


descriptionChannel description
membershipTypePrivate/Standard


isFavoriteByDefaultFalse/Truewhen membershipType is Standard
ownerowner of the channelwhen 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>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.