Users.saveContactType (Method)

Saves or creates user contact type information.

Returns:

Integer

Arguments:

Name Type Required Description
id ContactTypeID_0 Required A contact type ID. If this value is 0, CommonSpot adds a new contact type instead of updating an existing one.
name PlainText_NonNull_255 Required The contact type's name.
description PlainText_2000 Required The description of the contact type.
isActive Boolean Required Boolean flag which when set to true indicates that the contact type is active.
isDefault Boolean Required Boolean flag which when set to true indicates that this contact type is the default contact type.

Context:

License Requirements None
Permission Requirements customer:ManageUsers
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the customer level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

Code Error Message
66020 Another ContactType whose name is '$1' already exists.
66035 You cannot set an inactive contact type to be the default.
66037 You cannot remove this contact type as it is the default contact.

Notes:

None