cancel
Showing results for 
Search instead for 
Did you mean: 

Bypassing VisualForce Page with Mass LOOP button

Topic

How to bypass the VisualForce Page using the Mass LOOP button.

Instructions

Add the following parameters below to your Mass LOOP Button syntax:
&autorun=true&ddpids=[ddpID]&deploy=[deployID]

Additional Information

Below is a sample, for reference.
{!REQUIRESCRIPT("/soap/ajax/26.0/connection.js")}

{!REQUIRESCRIPT("/support/console/26.0/integration.js")}

var ids = {!GETRECORDIDS($ObjectType.Vacation__c)};
if (!ids || ids.length < 1)
    alert("Please select at least one record.");
else

{var redirectUrl = "/apex/loop__masslooplus?retURL=" + encodeURI(window.location.pathname+window.location.search);
    redirectUrl += "&recordIds="+ids.join(",");
    redirectUrl += "&sessionId={!$Api.Session_ID}";
    redirectUrl += "&contactField=Travel_Agent__c";
    redirectUrl += "&autorun=true&ddpids=a021a000000Dc0r&deploy=a011a000002YByS";
    window.location.href = redirectUrl;}

Labels: (2)
Version history
Revision #:
14 of 14
Last update:
‎03-12-2019 02:27 PM
Updated by: