Showing results for 
Search instead for 
Did you mean: 

Bypassing VisualForce Page with Mass LOOP button


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


Add the following parameters below to your Mass LOOP Button syntax:

Additional Information

Below is a sample, for reference.


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

{var redirectUrl = "/apex/loop__masslooplus?retURL=" + encodeURI(;
    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: