To get task updated after updating parent Lead

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anatoleq
    Junior Member
    • Oct 2018
    • 15

    To get task updated after updating parent Lead

    Hi, I've got stuck with the following case:
    When new Lead is saved I have corresponding task created (in hook, inside "beforeSave" function).
    In case I need to update the Lead, already created task needs to be updated as well. Task name is generated using data from Lead.
    How can I get already existing task name to update it?
    Last edited by Anatoleq; 12-18-2018, 03:37 AM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello,
    did you save this related task id somewhere or maybe this lead has only one task?
    you can get this task entity, modify it and save. we just need to define the way, how to find this task

    Comment

    Working...