English 中文(简体)
我们怎样才能在批准相关列表中 超过一个批准按钮?
原标题:how can we overide an approve button in approval related list

I want to override the approve button in approval related list. Is there a way we can do it? The idea is the delete a few records with certain criteria when an approve button is clicked. i want to run a apex code when an approve button is clicked and then submit the record for approval.

任何实现这一目标的要点都会有所帮助。

谢谢 谢谢

普拉迪普

最佳回答

我终于做了一个工作来完成这个任务。 而不是压倒批准按钮 i 使用批准程序 触发程序来完成这个任务

这就是我做了什么。

  1. Added a new field called SentForApproval (checkbox) in the object, make sure this is not in any page layout so no one accidently checks or unchecks this field.
  2. In the approval process made field update to the above field changing it to true.
  3. This field update would fire an update trigger.
  4. In your trigger check for if this field is updated, do what ever you want to do in the trigger.

希望这有帮助

问题回答

不, 不幸的是, 要做到这一点, 您必须完全推翻批准程序, 迫使用户通过自定义按钮流, 无法在批准历史列表中设置自定义按钮, 也无法取消批准/ 拒绝链接 。 销售公司自几年前实施以来, 没有显著提高批准程序的自定义性 。





相关问题
Salesforce - Populate text are from drop down selection

I have a picklist with three values and a text area that has three values as well, but I would like to correlate one value from the picklist with one value of the text area. Any thoughts as on how I ...

Setting Timeout value for Salesforce Web Service/API

The API for Salesforce is a web service, you set it up by downloading a WSDL file from Salesforce and adding the WSDL to your .NET project. But I can t find anywhere to set the Timeout value. ...

Salesforce Custom Objects

Hi I am trying to create a Custom Object in Salesforce.com Developer Edition, because I would then like to use this Custom Object in a New Custom Tab say "Properties". Properties tab will contain ...

热门标签