binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
force-app/main/default/objects/LastbuyProduct__c/webLinks/CB_LBP_New.webLink-meta.xml
@@ -8,5 +8,18 @@
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>false</requireRowSelection>
    <url>windows.location</url>
    <url>{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/connection.js&apos;)}
{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/apex.js&apos;)}
var foo = function(){
var url = &apos;/apex/StandardFieldDefaults?&apos;;
var product = &apos;{!Product2.Id}&apos;;
if (product != undefined &amp;&amp; product != &apos;&apos;) {
url = url + &apos;SObjId=&apos; + &apos;{!URLENCODE(Product2.Id)}&apos; + &apos;&amp;SObjName=&apos; + &apos;{!URLENCODE(Product2.Name)}&apos; + &apos;&amp;linkId=00N10000009HD8q&apos; + &apos;&amp;Pagefrom=Product&apos;;
}
url = url + &apos;&amp;Pageto=LastbuyProduct&apos;;
window.open(url);
}
foo();</url>
</WebLink>