Tag: SelectedEditLicense

The SelectedEditLicense function automates the action of accessing the licenses of selected users, allowing you to either assign or unassign their license.


<SelectedEditLicense>
	<SetParam Field="ENTERPRISEPREMIUM" Value="trUe"/>
	<SetParam Field="FLOW_O365_P3" Value="FALSe"/>
	<SetParam Field="EMSPREMIUM" Value="falsE"/>
</SelectedEditLicense>
XML

Tag Attributes

AttributesAttribute ValueValue DescriptionComment
KeepAliveTRUE (keeps dialog open) / FALSE (defaults to FALSE)N/AN/A

Detailed Description

SelectedEditLicense opens the Edit dialog to assign a new license value to users selected in the grid. It does this by using the SetParam actions you set for each user.

A grid selection is still required, just as it's required if using this function manually.


edit-licenses-and-service-plans

Example Script

<ytriaAutomation Application="sapio365">
	<OnError Continue="true"/>
	<Select lines="ByValue">
		<SetParam ColumnID="meta.displayName" Value="Betsy Drake" And="true"/>
		<SetParam ColumnID="OBJECTTYPE" Value="user"/>
	</Select>
	<SelectedEditLicense>
		<SetParam Field="ENTERPRISEPREMIUM" Value="trUe"/>
		<SetParam Field="FLOW_O365_P3" Value="FALSe"/>
		<SetParam Field="EMSPREMIUM" Value="falsE"/>
	</SelectedEditLicense>
	<!--SaveSelected/-->
</ytriaAutomation>
XML