Hi
I want disable duplication only for one case.
i am creating name with calculated value like XXXX YYYY ZZZZ . if i create new record with started XXXX popup can be turned off for one case. For all other the check should still be run.
Hi
I want disable duplication only for one case.
i am creating name with calculated value like XXXX YYYY ZZZZ . if i create new record with started XXXX popup can be turned off for one case. For all other the check should still be run.
this is for a single case? why would like to do that for a single case? You can just ignore the mssage and hit save. And it sounds to me like the name constisting out of only a date is not very .. good?
See above screenshot :-
1. in case one I would like if i create new record with APS001-AH01 every time popup can be turned off in that case.
2. in other case i woluld like popup as usual.
Maybe you can take a look in this topic: https://sugarclub.sugarcrm.com/explore/enterprise-professional/f/enterprise-professional-questions/2160/how-can-i-disable-the-duplication-check-on-the-name-field.
I think it is best if you overwrite the duplicate check api for this particular module and add some sort of configuration for it so it can skip duplicate checking on these specific cases? You should extend this specific api: clients/base/api/DuplicateCheckApi.php. In the function 'checkForDuplicates' you can add some code that retrieves some sort of configuration that defines what to check and what not. Can be as simple as
public function checkForDuplicates(ServiceBase $api, array $args){ if($args['module'] != 'Cases'){ return parent::checkForDuplicates($api,$args); }else{ if(strpos($bean->name,'APS001-AH01') !== false){ return []; }else{ return parent::checkForDuplicates($api,$args); } } }
Maybe you can take a look in this topic: https://sugarclub.sugarcrm.com/explore/enterprise-professional/f/enterprise-professional-questions/2160/how-can-i-disable-the-duplication-check-on-the-name-field.
I think it is best if you overwrite the duplicate check api for this particular module and add some sort of configuration for it so it can skip duplicate checking on these specific cases? You should extend this specific api: clients/base/api/DuplicateCheckApi.php. In the function 'checkForDuplicates' you can add some code that retrieves some sort of configuration that defines what to check and what not. Can be as simple as
public function checkForDuplicates(ServiceBase $api, array $args){ if($args['module'] != 'Cases'){ return parent::checkForDuplicates($api,$args); }else{ if(strpos($bean->name,'APS001-AH01') !== false){ return []; }else{ return parent::checkForDuplicates($api,$args); } } }