Update Parent Record From Child Field Values - Salesforce Flow Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • In this video, we update a parent record based on fields on the child record. Use flow to get all child records that meet specific criteria to update the parent.
    The example we use is updating an opportunity if the opportunity products go out of stock. Parent record update form Child formula field change.
    Subscribe for more videos like this: bit.ly/2ZjoZ8h
    Want to take your #Salesforce Knowledge to the next level? Want to learn advanced Salesforce #admin, #developer, #consultant skills? Want to pass the certification exams the first time? Go to salesforcementor.com/ new course content every week to keep you fresh.
    There you will find my outlined path to becoming an expert in Salesforce.
    Was this video helpful?
    www.buymeacoffee.com/walters954
    Thanks for watching.
    Follow me on twitter / thewalters954
    Connect with me on LinkedIn / walters954
    Join the Salesforce Exchange Discord join.sfxd.org
    ---------------------------------------------------------------------------------
    Recommended Books
    Advanced Apex Programming amzn.to/2X8hZb4
    Clean Code amzn.to/2X8iaTM
    Salesforce Platform App Builder Certification amzn.to/3eZOGPj
    Practical Salesforce Development Without Code amzn.to/30tDXsD

ความคิดเห็น • 17

  • @aditacuja
    @aditacuja 3 ปีที่แล้ว +3

    OMG, I love you! You saved my life :) This works for me perfectly and now I know how to do a flow. Thank you so much.

  • @OJTheGrouch
    @OJTheGrouch 3 ปีที่แล้ว

    This scenario was racking our brains. We were 95% there and it took us to 100. Thank you!

  • @jpm2681
    @jpm2681 4 ปีที่แล้ว

    Awesome!

  • @davidsno661
    @davidsno661 3 ปีที่แล้ว +1

    Thanks for the example 🙌🏽👊🏽

    • @Walters954
      @Walters954  3 ปีที่แล้ว

      This one was super fun to make and has many different use cases.

  • @chithraprakash2271
    @chithraprakash2271 3 ปีที่แล้ว

    Thank you for a very useful video

    • @Walters954
      @Walters954  ปีที่แล้ว

      Glad it was helpful!

  • @miggroup5557
    @miggroup5557 3 ปีที่แล้ว

    Nice,.It will be great to have some kind of dashboard showing in large Cap how much product is left!

  • @smitahodiggeri5082
    @smitahodiggeri5082 4 ปีที่แล้ว +1

    Hey Warren, thank you for this amazing video. I am trying to do this in my org and for some reason when I debug it, it fails with error. Error element Has_Out_Stock_Line_Items (FlowDecision).
    The flow couldn't find the "Get_Opp_Line_items" resource. it is not working for me. Everything seems Ok on double checking. any thoughts please?

    • @smitahodiggeri5082
      @smitahodiggeri5082 4 ปีที่แล้ว +1

      Solved this issue, I was checking for Instock checkbox first on opplineitem object and then providing the opportunity record to check on. solved it by providing first opp Id in conditions met followed by in stock

  • @peruchitamolinera
    @peruchitamolinera 2 ปีที่แล้ว

    Nice approach Walters954, but what happens if one Opportunity Product is deleted. Would the Process Builder work?

    • @Walters954
      @Walters954  ปีที่แล้ว

      You would need to use one of the new record trigger flow before delete to handle the change.

  • @pjrealty7555
    @pjrealty7555 3 ปีที่แล้ว

    Looks good..Here is my problem..OBJECT PROJECT and OPPORTUNITIES are NOT related and I would like a field of OPPORTUNITY to be on PROJECT!
    any idea?

  • @owork1596
    @owork1596 ปีที่แล้ว

    I am trying to do something similar, except instead of checking the value of a field on the child field, I am trying to compile a list of the data in a field on all the child objects to give a category list on the parent object. Like with your example here, how would you use flows to update a text field on the opportunity that lists the categories of all the related opportunity products?

    • @Walters954
      @Walters954  ปีที่แล้ว

      You would need to get list of opportunities that you wanted to update and then iterate over them if it was different values you needed for each of them. Other than that you can update all of them if the criteria in the update meets.