简体   繁体   English

查询所有 sObject 上的所有按钮(其中 contentSource = OnClick JavaScript)

[英]Query for all Buttons on all sObjects (where contentSource = OnClick JavaScript)

Is there any way , In which - I can find out how many/details of all the Buttons in my org which use JavaScript in it.有什么方法可以在其中 - 我可以找出我的组织中使用 JavaScript 的所有按钮的数量/详细信息。

Edit :编辑 :

I want to find out all the Button which uses JavaScript as Content Source when we create a Button in SALESFORCE ORG/Acc by going into当我们通过进入在 SALESFORCE ORG/Acc 中创建一个按钮时,我想找出所有使用 JavaScript 作为内容源的按钮

Setup - > Objects -> Button, Links & Actions – > Where Content Source = OnClick JavaScript

OR Lets make it more simple -或者让我们让它变得更简单——

How can I get List of all Button in sObject.如何获取 sObject 中所有按钮的列表。

EDIT 2 :编辑 2:

Till now I have got this - Is it useful to answer-直到现在我已经明白了 - 回答是否有用 -

SELECT id , Name, pageOrSobjectTYpe FROM WebLink where DisplayType= 'button' and LinkType ='javascript'; SELECT id , Name, pageOrSobjectTYpe FROM WebLink where DisplayType='button' and LinkType='javascript';

( I dont understand why this question is not too informative/unclear after this much info given above - to do minus ) (我不明白为什么在上面给出的这么多信息之后,这个问题的信息量不是太多/不清楚 - 做减号)

Thanks everyone - This is what I was looking for -谢谢大家 - 这就是我要找的 -

SELECT id , Name, pageorsobjecttype, DisplayType, LinkType FROM WebLink 

WHERE DisplayType IN ('B','L') and LinkType ='javascript'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM