Skip to main content
I have created a flow starting on the opportuntiy object. In this flow I created a dynamic choice. In this choice you see all products connected to this opportunity (all opportunity line items). Say, on the opportunity is product 1, product 2 and product 3. The dynamic choice now shows these 3 products and you can select for example product 1 and product 2. This already works fine. But here is the question: I created a custom checkbox on opportunity line item object, called "selected by dynamic choice". In this example I want the flow to check product 1 and product 2, because these were selected in the flow. How is this possible?
8 answers
  1. Sep 18, 2013, 12:52 PM
    We can do this in two ways

     

    Way 1: (Without coding)

     

    Create a Long area text field (32,567 approx) and update opportunity record by amending product values

     

    for e.,g  prod1 and prod2 selected update it as new_Field__C = assing selected products , record will be saved succesfully

     

    Now create a formula (check box type) over opportunity line item and wring if ( Contains(New_Filed__c, 'Product Name') return true.

     

    So as it is formula field it will be calculated automatically, if selected checked automatically

     

    Way 2: (using apex plugin) - NOT SUGGESTED

     

    write apex plugin such that need to query using opp Id & prod name and we need to get opp Line Item Id , then using this Id we need updated opportunity line item to true on product selected
0/9000