| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ExecuteProfiles ( | 
|   structured[UserImportProfile] importprofiles | 
| ) id:Method_DialogImportProfile_ExecuteProfiles | 
| { | 
|   #keys: '[132894.0.78240807]' | 
|   Body: | 
|   [* | 
|     // execute import profiles | 
|     uniqueimportobjectgroups := BaseImportProfile::GetUniqueImportObjectGroupInProfiles( importprofiles ); | 
|     // get file paths to upload | 
|     importobjectgroupsfromexcel := selectset( uniqueimportobjectgroups, Elements, e, | 
|                                               // HACK e.Source() = MPSyncUtility::ID_Source_Excel() ); | 
|                                               e.Source() = MPSyncUtility::ID_Source_Excel() or e.Source() = MPSyncUtility::ID_Source_3DSpace() ); | 
|      | 
|     binaryvalues := construct( BinaryValues ); | 
|     brokers := construct( Strings ); | 
|      | 
|     if ( importobjectgroupsfromexcel.Size() > 0 ) | 
|     { | 
|       Dialog.ImportFiles( importobjectgroupsfromexcel, binaryvalues, brokers ); | 
|     } | 
|      | 
|     MPSync.ExecuteUserImportProfiles( MacroPlan, | 
|                                       importprofiles, | 
|                                       uniqueimportobjectgroups,  | 
|                                       CheckBoxRefreshFromSource.Checked(),     // IsRefreshFromSource  | 
|                                       CheckBoxOverwriteManualConfig.Checked(), // IsOverwriteManualConfig | 
|                                       binaryvalues,  | 
|                                       brokers ); | 
|   *] | 
| } |