Custom Action in Hybris Marketing
I am providing some simple steps for enabling custom actions in Hybris Marketing as i could not find much documentation on how to enable them on UI along with the parameters and filter options, while i found it the hard way by “debugging”, i hope this can help save someones time 🙂
simple steps to create a custom action by emulating the standard actions provided by default.
- goto- SPRO->SAP Hybris Marketing->Campaigns->Campaign->Define Campaign categories and actions.
- click on New Entries and enter your action name “ZCUSTOM” Description and implementation Class “ZCL_XX_XX” preferably copy of standard class to start with.
- Assign the action to required campaign categories.
- goto SE16 open table CUANS_MKTORC_AC, add new entry for your custom action and maintain relevant attributes as required. refer standard actions on what and how maintain
- open table CUANS_MKTORC_AP add entry relevant to your custom action and maintain all the required parameters. refer standard actions on what and how maintain
- Modify your Z implementation class accordingly.
- create a new campaign and you should see your custom action along with its parameters visible in the UI.
Please note these are just steps on how and where to create the custom actions.
the logic and implementation of custom action is completely dependent on your business scenario.
To start with my suggestion would be to try and emulate the standard one as much as possible.
Hope this helps.
Thanks
Vineet
Hi Vineet very helpful the information.
Do you know if it is possible to do facebook campaings in marketing on premise 1709?
Thanks in advance
Kevin
Hi Kevin,
This should be possible using the standard SAP actions for running Facebook campaigns.
Can you check the Campaign Actions & Categories, you should have FB campaign action as well.
Thanks
Vineet
Thanks!, Finally we run Facebook Campaigns using SAP cloud connect
Regards
Kevin
Hi Kevin,
It's great to hear in the new year that you were able to fix the problem and run your campaigns, however for the group do you mind sharing the details of the problem and what your solution was so others can benefit as well.
Thanks
Vineet
We are using marketing On Premise 1709, so if you want to activate Facebook campings you have to follow these guide (https://help.sap.com/viewer/e68e4c8c856d429b85c2a7370c3553ae/1802%20YMKT/en-US/531e3c90d64044e9a15f1d5a03f194f6.html)
In our case, the main problem is that we had not activated all of the packages necesary to use odata services, using the error log trace we found the problem
Regards
Thanks! Is possible to manage the data source of the parameter?
For example:
after I've added my parameter, when I go to my custom action and click on the parameter, I want to have a help screen which select among the target groups and pass into the parameter the ID of the target group selected.
Is this possible?
thank you
Yes it is possible.
You can find everything in the extensibility guide:
https://help.sap.com/viewer/307cdb0f1a69422bb23b9ee426bd39f7/1809.YMKT/en-US/573af00023134bf28ed6ac817e8640d2.html