• Eduard Panin
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

Description:
I created the Custom Activity (REST) to support the integration between the MC and Custom App. It works fine. Now I am trying to create the managed package, which includes the DataExtention, Custom Activity, and Journey Template.
I receive the notification: Unsupported journey activity type "REST"

User-added image

Seems Salesforce doesn't support the REST type of custom activity in the managed package.
Does anyone knows how to create the Marketing Cloud managed package with integration?

Hello, 

Issue: I don't see the attachment in EmailMessage via activity history. 

I use a simple method of sending a single email.

String whoId = // Some Contact id
String whatId = // Some Account Id
Messaging.SingleEmailMessage result = new Messaging.SingleEmailMessage();
result.setTreatTargetObjectAsRecipient(false);
result.setTreatBodiesAsTemplate(true);
result.setTargetObjectId(whoId);
result.setWhatId(whatId);
result.setSubject(subject);
result.setHtmlBody(body);

List<SObject> contents = Database.Query('SELECT VersionData, PathOnClient FROM ContentVersion WHERE ContentDocumentId');
Messaging.EmailFileAttachment[] attachments = new Messaging.EmailFileAttachment[] {};

Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment();
attachment.setFileName((String)contents[0].get('PathOnClient'));
attachment.setBody((Blob)contents[0].get('VersionData'));
attachments.add(attachment);

result.setFileAttachments(attachments);
Messaging.sendEmail(new Messaging.SingleEmailMessage[]{result});

The email with attachment send successfully but I don't see the attachment in the Activity history as
an attachment for current email. It does not depend on ContentDocument because I tried to do it without it. 
Let me know what I am doing wrong. Maybe it is a platform bug or limitation. 
User-added image

Thanks,
Eduard

Description:
I created the Custom Activity (REST) to support the integration between the MC and Custom App. It works fine. Now I am trying to create the managed package, which includes the DataExtention, Custom Activity, and Journey Template.
I receive the notification: Unsupported journey activity type "REST"

User-added image

Seems Salesforce doesn't support the REST type of custom activity in the managed package.
Does anyone knows how to create the Marketing Cloud managed package with integration?

What is the difference between use 'force:showtoast' and 'lightning:notificationsLibrary' showToast method as strategy to displays toast messages?

In developer doc follows this recomendation: We recommend using lightning:notificationsLibrary for displaying messages in the app via notices and toasts. (https://developer.salesforce.com/docs/component-library/bundle/force:showToast/documentation)

I wish to understand why.
Hello, 

Issue: I don't see the attachment in EmailMessage via activity history. 

I use a simple method of sending a single email.

String whoId = // Some Contact id
String whatId = // Some Account Id
Messaging.SingleEmailMessage result = new Messaging.SingleEmailMessage();
result.setTreatTargetObjectAsRecipient(false);
result.setTreatBodiesAsTemplate(true);
result.setTargetObjectId(whoId);
result.setWhatId(whatId);
result.setSubject(subject);
result.setHtmlBody(body);

List<SObject> contents = Database.Query('SELECT VersionData, PathOnClient FROM ContentVersion WHERE ContentDocumentId');
Messaging.EmailFileAttachment[] attachments = new Messaging.EmailFileAttachment[] {};

Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment();
attachment.setFileName((String)contents[0].get('PathOnClient'));
attachment.setBody((Blob)contents[0].get('VersionData'));
attachments.add(attachment);

result.setFileAttachments(attachments);
Messaging.sendEmail(new Messaging.SingleEmailMessage[]{result});

The email with attachment send successfully but I don't see the attachment in the Activity history as
an attachment for current email. It does not depend on ContentDocument because I tried to do it without it. 
Let me know what I am doing wrong. Maybe it is a platform bug or limitation. 
User-added image

Thanks,
Eduard