Others Tutorials

Activating a list of Contracts in Salesforce

Posted on Feb 28, 2017

Others Admin

- First we have to create a Custom Button "Activate" on Contract Object and type is List Button with Javascript code

 

 

 


- Then We want add the button on "Contracts List View" Page Layout. 
- We will be Activate selected Contract records from List Views "Activate"  Button.

 

 

 

Javascript Code:

This code will update selected Contract records.

{!REQUIRESCRIPT ("/soap/ajax/13.0/connection.js")} 
var records = {!GETRECORDIDS($ObjectType.Contract)}; 
var newRecords = [];
 if (records[0] == null) { 
 alert("Please select at least one row");
 } else {
	  for (var n=0; n

 

Leave Us a Reply

The Best Websites for Free Online Courses and Technical Resources

Programming with Example