Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Validate a custom field of a Contact in Sales



Gepostet 28. Juli 2022

Hi all,

is it possible to validate a custom field of Contact in Sales/SELL?

In detail, when I create or edit a contact, i must validate (calling a my external service ) that a custom field is a valid VAT Number and only if validation has success the record can be saved! 

Thanks


0

2

2 Kommentare

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Lucia! Custom fields in Sell don't have a regex option to use for validation like we have in Support, so there is no native functionality to do this. How are you sending this data to your external service? If it's a custom app, you could always build validation into your app before sending it. 

0


Hi Greg,

I reply to yours question.

"How are you sending this data to your external service?"

I use a custom app located in the person card of deal and i use the zaf client object int this way:

//i am in contact sidebar custom app
client.on("deal.customFields:myCustumFields.changed").then(function(customField){
let validation = call_myExternaService(customField.newValue);
if(!validation){
//here i have to prevent the contact from being saved
}
}

 

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post