Add-MSContactsToModuleItem

Add an existing Contact to an App,User,Device etc

Syntax


Add-MSContactsToModuleItem -Module (String) -InstanceId (Int32) -ContactId (Int32) -ContactTypeId (Int32)

Add-MSContactsToModuleItem -Module (String) -InstanceId (Int32) -ContactId (Int32) -ContactTypeName (String)

Examples


## Add contact with Id 10 to Application Id 1000 with a contact type name of 'UAT Contact'
## Contact types (and Ids) can be found under Administration\[Module]\Menu Items - MenuGroup: ContactType. Ids are hidden by default, make sure to add the column.
Add-MSContactsToModuleItem -Module Applications -InstanceId 1000 -ContactId 10 -ContactTypeName 'UAT Contact'