Skip to Content

Access campaign ID of email action in SAP Hybris Marketing

When customizing the yMarketing email action I have to deal with the class CL_CUAN_MKT_EXEC_EXECUTE_EMAIL. In this process, I need to access the ID of the campaign which starts the action. To be more specific, I need the ID when the personalization of the email is handled which happens within the personalize() method.

I couldn't find any information about the executing campaign ID, just about the content ID of the email. Does anyone know how to access the campaign ID?

Kind regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    May 08 at 04:40 AM

    Hi,

    In the same class there is an instance attribute "MS_MKTORC_ROOT" which holds the campaign ID being executed. This can be access via me->ms_mktorc_root-initiative_id. Can you please check this?

    Thanks

    Add comment
    10|10000 characters needed characters exceeded