Hi Team,
I'm trying to replicate the code of the contactPageV2 for a custom section, but once I click in the hyperlink is open a new page with the number. Is not using the same behaivor of the contactPage. Something is missing?
{ "operation": "insert", "parentName": "ProfileContainer", "propertyName": "items", "name": "AccountPhone", "values": { "className": "Terrasoft.PhoneEdit", "bindTo": "Phone", "showValueAsLink": {"bindTo": "isTelephonyEnabled"}, "href": { "bindTo": "Phone", "bindConfig": {converter: "getLinkValue"} }, "linkclick": { "bindTo": "onCallClick" }, "contentType": Terrasoft.ContentType.ENUM, "layout": { "column": 0, "row": 4, "colSpan": 24 }, "controlConfig": { // Disable browser auto fill. Set unsupported autocomplete value. CRM-53034 "autocomplete": Terrasoft.generateGUID(), } }, "alias": { "name": "Phone", "excludeProperties": ["layout"], "excludeOperations": ["remove", "move"] } },
Like
Hi Federico,
Additionally you need to:
1) Add "CommunicationOptionsMixin" as a dependency to your page module:
define("UsrCustomPage", ["CommunicationOptionsMixin"],
2) Add this "CommunicationOptionsMixin" as a mixin:
mixins: { CommunicationOptionsMixin: "Terrasoft.CommunicationOptionsMixin" },
3) Add the "onCallClick" method to the module:
methods: { onCallClick: function(number) { return this.callContact(number, this.$Id, this.$Account); } },
4) Create the "CallCustomer" message in the module:
messages: { "CallCustomer": { mode: Terrasoft.MessageMode.PTP, direction: Terrasoft.MessageDirectionType.PUBLISH } },
Once done you can refresh the page and the CTI panel will open when clicking the number.
Best regards,
Oscar
Hi Federico,
Additionally you need to:
1) Add "CommunicationOptionsMixin" as a dependency to your page module:
define("UsrCustomPage", ["CommunicationOptionsMixin"],
2) Add this "CommunicationOptionsMixin" as a mixin:
mixins: { CommunicationOptionsMixin: "Terrasoft.CommunicationOptionsMixin" },
3) Add the "onCallClick" method to the module:
methods: { onCallClick: function(number) { return this.callContact(number, this.$Id, this.$Account); } },
4) Create the "CallCustomer" message in the module:
messages: { "CallCustomer": { mode: Terrasoft.MessageMode.PTP, direction: Terrasoft.MessageDirectionType.PUBLISH } },
Once done you can refresh the page and the CTI panel will open when clicking the number.
Best regards,
Oscar
Hi Oscar, for some reason the lead is not connected with the Object "Call" there is some condition for that?
here my call:
onCallClick: function(number) { var relationFields = this.Ext.create("Terrasoft.Collection"); relationFields.add("Lead", { name: "Lead", value: this.$Id, type: Terrasoft.DataValueType.GUID }); return this.callLeadWithRelations(number, this.$Id, relationFields); }