AnsweredAssumed Answered

Link to dependent module during Leads conversion

Question asked by Gustav Lindström on Nov 7, 2014
Latest reply on Sep 25, 2015 by Tim Summerer
At lead conversion I try to link my custom module Produkter to the Opportunity I just assosiated with the lead. I've tried to solve thid by altering 
custom/modules/Leads/clients/base/layouts/convert-main/convert-main.php
by adding opportunities as a depentent module and trying diffrent fieldMapping within the depenentModule, see below. I've tried diffrent combinations with the field mapping but nothing work. Is this possible does anyone know how to do it?


3 => 
            array (
              'copyData' => true,
              'required' => true,
              'moduleName' => 'Produkter',
              'module' => 'J_Prenumeration',
              'duplicateCheckOnStart' => false,
     'duplicateCheckRequiredFields' => 
              array (
               //
              ),
   'fieldMapping' => 
              array (
                //'opportunity_c' => 'opportunity_id',
              ),
     'dependentModules' => 
              array (
                'Opportunities' => 
                array (
                  'fieldMapping' => 
                  array (
                    'opportunity_id' => 'id',
     //'opportunities_j_prenumeration_1opportunities_ida' => 'id', tried this earlier
                  ),
                ),
              ),
              'hiddenFields' => 
              array (
               'opportunities_j_prenumeration_1_name' => 'Opportunities',
              ),
    ),

Outcomes