Hi ,
I am working on requirement to default the email address in from field and populate the eligible emails ID 's as drop down in from field based on some condition. So I need to overwrite the standard emails data that are already coming in from field.Please see the attachment for your reference.
I did below analysis.
Component:CRMCMP_CCS_EML
View:Email header
Method: DO_PREPRRE_OUTPUT.
I achieved populating the drop down values..by populating the values in typed_context->mail->gt_default_from_addresses.
But my requirement is to default one email based on some condition. So I populated the default value as first entry in the drop down list box so that it will automatically default.
It's working as expected if we have personalizing setting for Drop down list as 'Default'.Please see the attachment for your reference. But it's not working if we have settings like 'By Value' and 'By Key'.
Ex: If I have two emails in GT_DEFAULT_FROM_ADDRESS like .CC.UK@ABC.COM,CC(First entry Default)CC.IE@ABC.COM(Second entry). if I use the settings 'Default' it's default with CC.UK@ABC.COM if i use other setting it's defaulting with CC.IE@ABC.COM.
Could any one has any idea how to handle this..and options that we have in this case.
Or is there any other field I can default for From Field. (This should work for New ,Reply and Reply all )
I appreciate your help on this.
Thanks,
SaraSAP.