• Caleb Zautner
  • NEWBIE
  • 15 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello,

I am trying to create a "Mass Clone" and a "Mass Delete" button that will be visible from the list view of Tasks. My current approach is to create a flow that takes in a collection of records and loops through to either delete or clone them. I'm just focused on the 'delete' for now, once that's working I will add to the flow or create a new one for 'update'. 
To kick off the flow, I have a visualforce page that is added to a List View button. This visualforce page should collect the marked records and pass them along to the flow. 
First, is this even possible?
Second, am I on the right track?

The flow is pretty straight-forward.
User-added imageThis is what I have for my visualforce page.
<apex:page standardController="Task" tabStyle="Task" recordSetVar="tasks">
    <apex:repeat value="{!tasks}" var="row" rendered="false">
        {!row.Id}
    </apex:repeat>
    <flow:interview name="Task_Delete">
        <apex:param name="TaskCollection" value="{!tasks}" />
    </flow:interview>
</apex:page>
Finally, here is the setup for the List View button.
User-added imageThanks in advanced!
 
Hello,

I am trying to create a "Mass Clone" and a "Mass Delete" button that will be visible from the list view of Tasks. My current approach is to create a flow that takes in a collection of records and loops through to either delete or clone them. I'm just focused on the 'delete' for now, once that's working I will add to the flow or create a new one for 'update'. 
To kick off the flow, I have a visualforce page that is added to a List View button. This visualforce page should collect the marked records and pass them along to the flow. 
First, is this even possible?
Second, am I on the right track?

The flow is pretty straight-forward.
User-added imageThis is what I have for my visualforce page.
<apex:page standardController="Task" tabStyle="Task" recordSetVar="tasks">
    <apex:repeat value="{!tasks}" var="row" rendered="false">
        {!row.Id}
    </apex:repeat>
    <flow:interview name="Task_Delete">
        <apex:param name="TaskCollection" value="{!tasks}" />
    </flow:interview>
</apex:page>
Finally, here is the setup for the List View button.
User-added imageThanks in advanced!