cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Insight into Marketing Content (emails) in C4C Leads

SCHNEIDERT
Active Contributor
1,511

Dear Experts,

does anyone know if it is possible to get the information about the "View-In-Browser"-Link - that is automatically generated by the system during campaign execution - already before?

My question is caused by the following reason:

We're executing an email campaign which later on generates leads in C4C (e.g. after a Click Trough action). By starting the campaign in MC, the campaign information is also handed over to C4C (including basic information like Campaign name). The Lead in C4C is then linked to that campaign in C4C. The sales colleague who is responsible for the lead would like to see the email that the contact has received. He could click on the campaign but can only see the basic information mentioned before.

So I'm searching for a way to give the sales colleague insight into the marketing actions (and the content which was used) which led to the lead generation. Attention: At this point we only have a Lead in C4C, so I'm not able to use the information like I would do for active Contacts (I know for them we could retrieve campaign interactions at runtime).

That's why I thougt about maybe handing over a "general" View in Browser Link or something like that, by which sales could get the needed information. But I wasn't able to find anything in the html code (an id or something like that which is later on used in the generated link).

I read the blogpost which is related to the ViB-Link: https://blogs.sap.com/2016/12/21/view-in-browser-functionality-for-sap-hybris-marketing/ and hoped that you maybe have an idea tim.nusch ?

Hope I was able to clarify the scenario and would be happy to discuss it. Maybe anyone here already had a similar requirement.

BR Tobias

View Entire Topic
CagriSenol
Participant

Hi schneidert ,

If I understood correctly, you want to handover some Content details to C4C to show to the Sales team more information about the lead.

After a quick check, I find an attribute which is not mapped in C4C Lead replication in standard. Please check the PredecessorInteraction attributes and I'm pretty sure you'll find some more.

/ns0:LeadBulkReplicationRequest/LeadRequestMessage/Lead/PredecessorInteraction/ContentData

So I would create a new field in C4C and do a mapping for this type of main informations to C4C. In case some more non standard fields are required, then create a custom fields to Interaction in MC, then update the mapping.

But please let me know if the requirement is a bit different.

Regards,

Cagri

SCHNEIDERT
Active Contributor
0 Likes

Hi Cagri,

thanks for your quick reply.

Yes you understood it correctly 🙂

We already using that field and write the information in the C4C note field. E.g. when a lead is directly created after he submitting the corresponding contact request form on the website.

I don't think that it will be possible, but still a good idea to check whether I can find some information regarding the email in the predecessor interaction. Even if I would create a custom field, I would have to write the View-In-Brower-Link into it. That's the information we would like to see in C4C.

BR Tobias

CagriSenol
Participant

Hi schneidert ,

I find the scenario really interesting and want to dig in a little bit more.

My proposal is given below. Theoretically it should work. (Only if the Email content is not prepared in Email Lite. This is a restriction from SAP to use the Message Content API's.)

1-) Create a post exit for "Replicate Lead with Business Partner Address Information from SAP Marketing" iflow.

2-) In case the campaign content id is not transferred to this iflow;

2.a -) Call the Interaction service to retrieve the Content ID by using the InteractionUUID.

//api_mkt_interaction_srv/Interactions?$filter=(InteractionUUID eq quid'42010a05-686e-1edb-9ab6-2f564dbd172c')...

(I believe the Interaction UUID is already in Payload. If there is none, then please let me know, I can't trace it now.)

3-) Once you have the Content ID then call below service to have the MessageUUID

//api_mkt_campaign_message_srv/Messages?$top=10&Filter=Message eq '425'

4-) Once you have the MessageUUID then you can have the HTML of the content via below service.

//API_MKT_CAMPAIGN_MESSAGE_SRV/Messages(guid'42010a05-686e-1edb-9c8a-e2458d109ad0')/MessageContents

5-) There is an attribute MessageContentHTMLString

6-) Assign this html code as a link to a new created custom field in C4C, then I believe it works.

Let me know if this make sense to your requirement.

PS: Below Comm. Arrangement should be enabled in MC.

Scenario ID: SAP_COM_0094
Scenario: Marketing - Show Email Content in Browser Integration

Regards,

Cagri

SCHNEIDERT
Active Contributor
0 Likes

Hi Cagri,

okay wow, that sounds really cool!! 🙂 I will check that and try it out and let you know. Thank you so much for that idea and your insights.

Actually we're creating the emails with Email Lite. So in that case it would not work, did I get that right?

But for sure I will give it a try.

Kind regards

Tobias

CagriSenol
Participant
0 Likes

Unfortunately that is correct.

If you check the below page you'll see the note. This is weird, because there is no replacement it is only stopping the feature, I hope SAP will bring a workaround soon.

https://help.sap.com/viewer/0f9408e4921e4ba3bb4a7a1f75f837a7/2108.500/en-US/cf542a31abbb411d8421fde9...

Note

This function is not available for the new editor, that is message type Email Lite and Email Template Lite.

Regards,

Cagri

former_member226
Employee
Employee
0 Likes

Hi cagreply ,

I really like your approach, but I have a follow-up question from the approach you shared above... Field "MessageContentHTMLString" will only contain the generic message HTML(from Content Studio) with no value for placeholder from personalization attribute or offer/product recommendation item, correct? Hence, we will never come to know what was actually received by the customer in their email box.

Sorry if this is quite silly but haven't yet validated in my system.

BR
Saurabh

vervinckt_joyca
Active Contributor
0 Likes

Hi saurabhkabra2009

as you're calling the API:

/API_MKT_CAMPAIGN_MESSAGE_SRV/Messages(guid'42010a05-686e-1edb-9c8a-e2458d109ad0')/MessageContents

which includes the guid of one specific message,

the "MessageContentHTMLString" does actually provide the fully personalized email that was sent to the customer.

former_member226
Employee
Employee
0 Likes

Hi vervinckt.joyca,

So I just checked and unfortunately what you mentioned is incorrect. API endpoint "/API_MKT_CAMPAIGN_MESSAGE_SRV/Messages(guid'42010a05-686e-1edb-9c8a-e2458d109ad0')/MessageContents" will always give you non-personlized HTML with placeholders in field MessageContentHTMLString.

Actually I kind of suspected this because in step 3 of Cagri's answer above(https://answers.sap.com/comments/13510716/view.html) he is calling the generic message API with filter(Message eq '425') which has no correlation with interaction being queried. Hence, I believe you only get the standard HTML body and not the personalized one.

vervinckt_joyca
Active Contributor

Hi saurabhkabra2009

My appologies. I knew I had already done that kind of calls in the past, and I just double checked how I did that, and it was with the following API call:

{{url}}/sap/opu/odata/sap/API_MKT_CAMPAIGN_MESSAGE_SRV/GetPersonalizedMessage?CampaignOutbound='225A4D6BD7EF0F2BED2209A540FECF5F604CDE94'&LinkTrackingIsDisabled=false

So the API is the same, but the path is different. This call does get the fully personalized html.

former_member226
Employee
Employee
0 Likes

Thank you so much vervinckt.joyca . It is working like charm!