Skip to main content
I beleive I am in need a a trigger but could be wrong.  Let me explain my problem.

 

I have an apex trigger set when a new lead is created to create a task to call the customer 7 days from the lead creation date. The  problem is a lead is created a TASK is automatically scheduled (perftec), But that TASK stays assigned to whomever creates the lead.  

 

Where is the order. I (brian) upload the lead into salesforce and the trigger creates a task for the saleperson to contact the lead in seven days. When I upload the leads to salesforce they are assigned to the sales director who then assigns the leads to a sales person. With the being said the task is under my name (Brian) and not the salesperson who is the final owner of the lead.  Is there any way to fix this?  Thanks Brian 
8 answers
  1. Jul 28, 2014, 6:21 PM
    Alright! I would then suggest you to look at: Workflow Rules then! 

     

    Here you go:

    1. Go to Setup | Customize | Create | Workflows & Approvals | Workflow Rule

    2. New Rule

    3. Select the Lead

    4. Evaluation Criteria : created

    5. Rule Criteria : criteria are met

    6. Set up somethin like: Id

      not equal to <LEAVE-IT-BLANK>
    7. Click Save & Next

    8. From under Immediate Worfklow Actions, click Add Workflow Action and select Task

    9. You will then set the Assigned To as: Lead Owner

    10. Due Date : Rule trigger Date

      plus 7 Days
    11. Fill the others

    12. Save

    13. Click Done

    14. Activate!

    Shouldn't that work ? Thoughts @Michael Gill

0/9000