Remove-MSContactFromModuleItem

Removes a Contact from a linked App,Users,Device etc. Does not remove the Contact from MS.

Syntax


Remove-MSContactFromModuleItem -Module (String) -InstanceId (Int32) -ContactId (Int32)

Remove-MSContactFromModuleItem -Module (String) -InstanceId (Int32) -ContactId (Int32) [-ContactTypeId (Int32)]

Remove-MSContactFromModuleItem -Module (String) -InstanceId (Int32) -ContactId (Int32) [-ContactTypeName (String)]

Examples


## Remove contact with Id 10 and contact type name of 'UAT Contact' from Application Id 2000
## This will fail if the wrong contact type name is specified
Remove-MSContactFromModuleItem -Module Applications -InstanceId 2000 -ContactId 10 -ContactTypeName 'UAT Contact'

## Remove contact with Id 1071 and contact type Id of 14 from Application Id 2989
## This will fail if the wrong contact type Id is specified
## 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.
Remove-MSContactFromModuleItem -Module Applications -InstanceId 2989 -ContactId 1071 -ContactTypeId 14