Skip to Content
Author's profile photo Vineet Kaul

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.

  1. goto- SPRO->SAP Hybris Marketing->Campaigns->Campaign->Define Campaign categories and actions.
  2. 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.
  3. Assign the action to required campaign categories.
  4. 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
  5. 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
  6. Modify your Z implementation class accordingly.
  7. 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

Assigned tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Kevin Meneses Gonz√°lez
      Kevin Meneses Gonz√°lez

      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

      
                    
      Author's profile photo Vineet Kaul
      Vineet Kaul
      Blog Post Author

      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

       

      Author's profile photo Kevin Meneses Gonz√°lez
      Kevin Meneses Gonz√°lez

      Thanks!, Finally we  run Facebook  Campaigns using SAP cloud connect

      Regards

      Kevin

      Author's profile photo Vineet Kaul
      Vineet Kaul
      Blog Post Author

      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

      Author's profile photo Kevin Meneses Gonz√°lez
      Kevin Meneses Gonz√°lez

      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

      Author's profile photo Emma CRM
      Emma CRM

      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

      Author's profile photo Christian Pfisterer
      Christian Pfisterer

      Yes it is possible.

      You can find everything in the extensibility guide:

      https://help.sap.com/viewer/307cdb0f1a69422bb23b9ee426bd39f7/1809.YMKT/en-US/573af00023134bf28ed6ac817e8640d2.html