on 01-27-2023 10:43 AM
We are creating account and project leads via SAP Marketing Cloud "Create lead" campaigns and by using the manual push after leads got qualified. Now we were thinking if it is somehow possible to send some notification to one specfic email address each time a new lead was created. The email should contain information about the lead (at least the ID) so that the processors of the leads in C4C are aware of the new lead.
I was thinking about some trigger-based campaign based on the interaction segmentation profile, however, the email action of course would always only send to the contact of the interaction. I do not think that this can be adjusted.
Do you have any idea whether this can be achieved with the standard functionalities (in combination with some custom logic)? Of course, there is always some chance of doing a custom implementation on CPI, however, I would like to check if it can be achieved in a more simple way...
Thanks for your ideas!
I was able to implement the requirement. Thanks to isabelle.thore for providing the final hint. Please find a summary below.
1) Create a new contact that should receive the notification emails
2) Create a custom interaction type (e.g. "Sales Notification") with communication medium "Web" via "Manage Your Solution" app
3) Enable the custom interaction type as campaign trigger via "Manage Your Solution" app
3) Add the interaction element (hidden & pre-selected) to your form
4) Implement BadI "Revise Interaction Data Before Import"
IF interaction_data-mkt_area_id = 'MHP' AND interaction_data-ia_type = 'Y_SALES_NOTIFICATION'.
* Get new contact’s name in order to store it to the interaction
DATA: lv_name type c length 80.
SELECT SINGLE FullName FROM I_Mkt_Contact
WHERE InteractionContact EQ @interaction_data-contact_key
INTO @lv_name.
IF lv_name IS NOT INITIAL.
interaction_data-content_title = lv_name.
ENDIF.
* Create the interaction for the market contact address instead for the new lead
* Contact key is a different one on test and production system, therefore read it based on the facet (same in both systems)
* Launch URL of interaction probably not always containing the system ID
SELECT SINGLE InteractionContact
INTO @data(lv_contact_key)
FROM I_MKT_ContactFacet
WHERE InteractionContactOrigin EQ 'YOUR_SALES_CONTACT_ORIGIN'
AND InteractionContactId EQ 'YOUR_SALES_CONTACT_ID'.
* Set general contact only if contact was found based on facet
IF lv_contact_key IS NOT INITIAL.
interaction_data-id_origin = 'YOUR_SALES_CONTACT_ORIGIN'.
interaction_data-id = 'YOUR_SALES_CONTACT_ID'.
interaction_data-contact_key = lv_contact_key.
ELSE.
* Otherwise do not create the interaction (something must be wrong)
exclude_from_import = 'X'.
ENDIF.
ENDIF.
I set the name of the contact who submitted the form as content title. Of course, you can also use different information.
Furthermore, the sales contact in the test system has of course a different key than the one on production. I did not feel comfortable to rely on the launch URL of the interaction since I am not sure if it does always contain the system ID when hosted somewhere else. Therefore, I made sure to use the same identifying origin/ID combination on both systems to read the interaction contact key.
The interactions are correctly written after the BadI was implemented (don't be confused by the strange test contact names).
5) Create a trigger-based campaign with the custom interaction type as campaign trigger. Use the email action to send out the notification. For the campaign and the content make sure to use the interaction-based profile. The content can then for example contain the name (content title).
To make sure only the specific sales contact receives notifications, you can of course also add a live target group in addition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Christian,
Sorry for the delay. What we could suggest to look at is:
Would that work for your business case?
Best Regards
Isabelle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi isabelle.thore. I already tried it with that BadI but got stuck with the approach to create an additional interaction. But now I think I know what you mean and definitly makes sense. In the form I will add the custom interaction which is always checked and hidden. For those interactions I will always replace the contact using the BadI and create some campaign to send out the email. I can probably also use the BadI to define some logic to fill the custom interactions content subject with information about the form submission (e.g. name of the new lead) that can then be used to personalize an interaction-based email content.
Due to 2302 upgrade preps I am currently blocked in the configuration but will comment when I got some result 🙂
Hi,
I guess the additional IC subnode it not the right entity to use, for several reasons:
-Additional IC are not used for trigger based campaigns
-additional ICs are only used in the segmentation content for "Contact Relationships"
-IAs with Add IC are only shown on the contact factsheet in case the usage of Projections/Contact Relationships is turned on.
I would try to duplicate the interaction within the BadI, change the contact and use it as a trigger.
Best regards
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was trying to work with custom logic "Revise Interaction Data Before Import" and the additional interaction contact object:
The additional contact linked is the one with the general email address that should be notified. The contact is correctly linked to the interaction as "Additional Interaction Contact":
However, unfortunatelly this does not mean that the interaction is duplicated to that additional contact. So it can not be used as trigger for the additional contact...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christian,
I might have an idea. I am currently validating.
Best Regards
Isabelle
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.