Hi! I need some help with formula. How can I get de recordURL from the entity Case before save?. I wourld like to print a URL reference from a case record and send it by Email. I can send Email ok
thanks in advance
thanks in advance
{ "functionList": [ "__APPEND__", { "name": "string\\getSiteUrl", "insertText": "string\\getSiteUrl()" } ], "functionClassNameMap": { "string\\getSiteUrl": "Espo\\Custom\\Core\\Formula\\Functions\\Strin gGro up\\GetSiteUrl" } }
<?php
namespace Espo\Custom\Core\Formula\Functions\Base\StringGrou p;
use Espo\Core\Utils\{
Config,
Config\ConfigFileManager
};
class GetSiteUrl extends \Espo\Core\Formula\Functions\Base {
public function process(\StdClass $args = null) {
$fileManager = new ConfigFileManager();
$config = new Config($fileManager);
return $config->getSiteUrl();
}
}
currentURL=string\getSiteUrl();
imageAddress=string\concatenate( currentURL, '/','?entryPoint=DubasPublicAttachment&id=' );
imageDownloadLink=string\concatenate(imageAddress, imageId);
Comment