高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/objects/Maintenance_Contract__c/webLinks/Create_NewServiceContract.webLink-meta.xml
@@ -8,7 +8,10 @@
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>true</requireRowSelection>
    <url>var foo = function() {
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
var foo = function() {
var Hospital = &apos;{!URLENCODE(Account.Hospital__c)}&apos;;
var Hospitalid = &apos;{!URLENCODE(Account.HospitalId__c)}&apos;;
@@ -18,11 +21,11 @@
var accountid = &apos;{!URLENCODE(Account.Id)}&apos;;
var url = &apos;a0H/e?CF00N10000002Dx56=&apos; + Hospital +&apos;&amp;CF00N10000002Dx56_lkid=&apos;
var url = &apos;/a0H/e?CF00N10000002Dx56=&apos; + Hospital +&apos;&amp;CF00N10000002Dx56_lkid=&apos;
+ Hospitalid + &apos;&amp;CF00N10000002Dx4p=&apos; + Department + &apos;&amp;CF00N10000002Dx4p_lkid=&apos;
+ Departmentid + &apos;&amp;CF00N10000002Dx4q=&apos; + accountname + &apos;&amp;CF00N10000002Dx4q_lkid=&apos;
+ accountid + &apos;&amp;RecordType=01210000000gTYq&apos;;
window.top.location.href = url;
window.open(url);
}