Skip to Content
0

Access campaign ID of email action in SAP Hybris Marketing

May 07 at 02:12 PM

75

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Saurabh Kabra
May 08 at 04:40 AM
1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Saurabh, I currently have a question which is kind of the same topic. Maybe you can prevent an answer on this too: Access Partner ID in the email action of SAP Hybris Marketing

0