This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myCustomJSMethod: function(module, guid){ | |
//Instantiate a SugarBean object representing record identified by GUID | |
var beanObject = app.data.createBean(module, {id:guid}); | |
//Send request to REST v10 API to retrieve the record | |
beanObject.fetch({ | |
//Define the anonymous function that will execute on a successful response | |
success: function(data){ //the data parameter represents the JSON response from the API | |
//Do something with the response upon successful request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/clients/base/fields/file/file.js */ | |
extendsFrom: 'FileField', | |
_doValidateFileError: function(fields, errors, callback, resp) { | |
app.alert.dismiss('upload'); | |
app.logger.fatal(resp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/Extension/modules/Accounts/Ext/LogicHooks/email.ext.php */ | |
$hook_array['after_save'][] = array( | |
102, | |
'Send email test', | |
'custom/modules/Accounts/pmseSend.php', | |
'emailTest', | |
'emailTest' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* File: ./custom/clients/base/api/MyCustomApi.php */ | |
class MyCustomApi extends SugarApi { | |
public function registerApiRest() { | |
return array( | |
'myCustomMethod' => array( | |
'reqType' => 'GET', |
OlderNewer