Hello,
I want to add a phone validation to the "Other phone" and "Extension phone" fields in Communication options.
For Mobile phone I used the following code:
I want to do the same thing for the other 2, but I cannot find their objects anywhere?
Does anybody know how I can do this?
Thank you!
Like
Hello,
"Other phone" and "Extension phone" are communication types only, not objects and their values are stored in the "ContactCommunication" table (actual number is stored in the "Number" column) with the correspondent "CommunicationTypeId" (Id correspondent values can be reviewed in the "CommunicationType" table). Also these communication types have no correspondent columns on the "Contact" enity side.
Hello,
"Other phone" and "Extension phone" are communication types only, not objects and their values are stored in the "ContactCommunication" table (actual number is stored in the "Number" column) with the correspondent "CommunicationTypeId" (Id correspondent values can be reviewed in the "CommunicationType" table). Also these communication types have no correspondent columns on the "Contact" enity side.
Oleg Drobina,
Thank you for your answer! Do you know what I can do to create a validation for these two? I created 2 fields in the Contact object and now I want to somehow connect them to the ones from Comunications.
Ghiu Diana Stefania,
In this case you need to create a logic similar to the one that is triggered when new communication option is added to the ContactCommunication object (see the logic in the SynchronizeCommunicationWithEntity method from the CommunicationSynchronizer source code). Alternatively you can try creating a custom business process that will update a main contact record in case new value was added to contact communication option.