Custom EXM DispatchTask is never executed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I've been following the instructions on how to create custom personalization tokens. After following the instructions everything compiles, and everything seemingly works just fine. I can create a new campaign in EXM and I can send a test mail from "Review". However, the test mail doesn't replace my custom tokens.



Having googled a bit I found this question, which is similar, but not identical. The answer to that question was that the custom facets had not been added to the custom DispatchTask.



My custom facets, however, have been added to my custom DispatchTask, and I know that there's nothing wrong with them as I can read and write to them in XConnect and through Tracker.Current.Contact.



It seems that my CustomDispatchTask class is never executed, which explains why my custom tokens are not replaced.



/sitecore/admin/showconfig.aspx shows that my custom class has indeed been patched in:



<exm>
<dispatchTask
type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName"
patch:source="My.EXM.config">
.....
</dispatchTask>
</emx>


But if I try to debug either the constructor or the overridden GetContacts methods, the breakpoints are never hit. I also added some logging to it (in case this code is executed on AppStart where I won't be able to debug fast enough) but those log messages never appear in the log file. There are actually no exceptions or errors in the log files at all.



Why isn't my CustomTokensDispatchTask executed?



CustomTokensDispatchTask.cs



public class CustomTokensDispatchTask : DispatchTask

private readonly IContactService _contactService;

public CustomTokensDispatchTask([NotNull] ShortRunningTaskPool taskPool, IRecipientValidator recipientValidator, IContactService contactService, EcmDataProvider dataProvider, ItemUtilExt itemUtil, IEventDataService eventDataService, IDispatchManager dispatchManager, EmailAddressHistoryManager emailAddressHistoryManager, IRecipientManagerFactory recipientManagerFactory, SentMessageManager sentMessageManager)
: base(taskPool, recipientValidator, contactService, dataProvider, itemUtil, eventDataService, dispatchManager, emailAddressHistoryManager, recipientManagerFactory, sentMessageManager)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask", this);
_contactService = contactService;


protected override IReadOnlyCollection<IEntityLookupResult<Contact>> GetContacts(List<DispatchQueueItem> dispatchQueueItems)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask.GetContacts", this);
return _contactService.GetContacts(dispatchQueueItems.Select(x => x.ContactIdentifier),
PersonalInformation.DefaultFacetKey,
AddressList.DefaultFacetKey,
EmailAddressList.DefaultFacetKey,
ConsentInformation.DefaultFacetKey,
PhoneNumberList.DefaultFacetKey,
ListSubscriptions.DefaultFacetKey,
MyCustomFacet.DefaultFacetKey);




My.EXM.Config



<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:set="http://www.sitecore.net/xmlconfig/set">
<sitecore>
<exm>
<dispatchTask set:type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName">
</dispatchTask>
</exm>
<recipients>
<recipientPropertyTokenMap set:type="My.Namespace.CustomTokensTokenMap, MyAssemblyName">
</recipientPropertyTokenMap>
</recipients>
</sitecore>
</configuration>


Sitecore 9.0.2










share|improve this question























  • Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
    – Peter Prochazka
    3 hours ago










  • Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
    – GTHvidsten
    3 hours ago










  • Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
    – GTHvidsten
    2 hours ago










  • You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
    – Peter Prochazka
    2 hours ago










  • I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
    – Peter Prochazka
    2 hours ago














up vote
3
down vote

favorite












I've been following the instructions on how to create custom personalization tokens. After following the instructions everything compiles, and everything seemingly works just fine. I can create a new campaign in EXM and I can send a test mail from "Review". However, the test mail doesn't replace my custom tokens.



Having googled a bit I found this question, which is similar, but not identical. The answer to that question was that the custom facets had not been added to the custom DispatchTask.



My custom facets, however, have been added to my custom DispatchTask, and I know that there's nothing wrong with them as I can read and write to them in XConnect and through Tracker.Current.Contact.



It seems that my CustomDispatchTask class is never executed, which explains why my custom tokens are not replaced.



/sitecore/admin/showconfig.aspx shows that my custom class has indeed been patched in:



<exm>
<dispatchTask
type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName"
patch:source="My.EXM.config">
.....
</dispatchTask>
</emx>


But if I try to debug either the constructor or the overridden GetContacts methods, the breakpoints are never hit. I also added some logging to it (in case this code is executed on AppStart where I won't be able to debug fast enough) but those log messages never appear in the log file. There are actually no exceptions or errors in the log files at all.



Why isn't my CustomTokensDispatchTask executed?



CustomTokensDispatchTask.cs



public class CustomTokensDispatchTask : DispatchTask

private readonly IContactService _contactService;

public CustomTokensDispatchTask([NotNull] ShortRunningTaskPool taskPool, IRecipientValidator recipientValidator, IContactService contactService, EcmDataProvider dataProvider, ItemUtilExt itemUtil, IEventDataService eventDataService, IDispatchManager dispatchManager, EmailAddressHistoryManager emailAddressHistoryManager, IRecipientManagerFactory recipientManagerFactory, SentMessageManager sentMessageManager)
: base(taskPool, recipientValidator, contactService, dataProvider, itemUtil, eventDataService, dispatchManager, emailAddressHistoryManager, recipientManagerFactory, sentMessageManager)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask", this);
_contactService = contactService;


protected override IReadOnlyCollection<IEntityLookupResult<Contact>> GetContacts(List<DispatchQueueItem> dispatchQueueItems)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask.GetContacts", this);
return _contactService.GetContacts(dispatchQueueItems.Select(x => x.ContactIdentifier),
PersonalInformation.DefaultFacetKey,
AddressList.DefaultFacetKey,
EmailAddressList.DefaultFacetKey,
ConsentInformation.DefaultFacetKey,
PhoneNumberList.DefaultFacetKey,
ListSubscriptions.DefaultFacetKey,
MyCustomFacet.DefaultFacetKey);




My.EXM.Config



<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:set="http://www.sitecore.net/xmlconfig/set">
<sitecore>
<exm>
<dispatchTask set:type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName">
</dispatchTask>
</exm>
<recipients>
<recipientPropertyTokenMap set:type="My.Namespace.CustomTokensTokenMap, MyAssemblyName">
</recipientPropertyTokenMap>
</recipients>
</sitecore>
</configuration>


Sitecore 9.0.2










share|improve this question























  • Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
    – Peter Prochazka
    3 hours ago










  • Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
    – GTHvidsten
    3 hours ago










  • Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
    – GTHvidsten
    2 hours ago










  • You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
    – Peter Prochazka
    2 hours ago










  • I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
    – Peter Prochazka
    2 hours ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I've been following the instructions on how to create custom personalization tokens. After following the instructions everything compiles, and everything seemingly works just fine. I can create a new campaign in EXM and I can send a test mail from "Review". However, the test mail doesn't replace my custom tokens.



Having googled a bit I found this question, which is similar, but not identical. The answer to that question was that the custom facets had not been added to the custom DispatchTask.



My custom facets, however, have been added to my custom DispatchTask, and I know that there's nothing wrong with them as I can read and write to them in XConnect and through Tracker.Current.Contact.



It seems that my CustomDispatchTask class is never executed, which explains why my custom tokens are not replaced.



/sitecore/admin/showconfig.aspx shows that my custom class has indeed been patched in:



<exm>
<dispatchTask
type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName"
patch:source="My.EXM.config">
.....
</dispatchTask>
</emx>


But if I try to debug either the constructor or the overridden GetContacts methods, the breakpoints are never hit. I also added some logging to it (in case this code is executed on AppStart where I won't be able to debug fast enough) but those log messages never appear in the log file. There are actually no exceptions or errors in the log files at all.



Why isn't my CustomTokensDispatchTask executed?



CustomTokensDispatchTask.cs



public class CustomTokensDispatchTask : DispatchTask

private readonly IContactService _contactService;

public CustomTokensDispatchTask([NotNull] ShortRunningTaskPool taskPool, IRecipientValidator recipientValidator, IContactService contactService, EcmDataProvider dataProvider, ItemUtilExt itemUtil, IEventDataService eventDataService, IDispatchManager dispatchManager, EmailAddressHistoryManager emailAddressHistoryManager, IRecipientManagerFactory recipientManagerFactory, SentMessageManager sentMessageManager)
: base(taskPool, recipientValidator, contactService, dataProvider, itemUtil, eventDataService, dispatchManager, emailAddressHistoryManager, recipientManagerFactory, sentMessageManager)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask", this);
_contactService = contactService;


protected override IReadOnlyCollection<IEntityLookupResult<Contact>> GetContacts(List<DispatchQueueItem> dispatchQueueItems)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask.GetContacts", this);
return _contactService.GetContacts(dispatchQueueItems.Select(x => x.ContactIdentifier),
PersonalInformation.DefaultFacetKey,
AddressList.DefaultFacetKey,
EmailAddressList.DefaultFacetKey,
ConsentInformation.DefaultFacetKey,
PhoneNumberList.DefaultFacetKey,
ListSubscriptions.DefaultFacetKey,
MyCustomFacet.DefaultFacetKey);




My.EXM.Config



<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:set="http://www.sitecore.net/xmlconfig/set">
<sitecore>
<exm>
<dispatchTask set:type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName">
</dispatchTask>
</exm>
<recipients>
<recipientPropertyTokenMap set:type="My.Namespace.CustomTokensTokenMap, MyAssemblyName">
</recipientPropertyTokenMap>
</recipients>
</sitecore>
</configuration>


Sitecore 9.0.2










share|improve this question















I've been following the instructions on how to create custom personalization tokens. After following the instructions everything compiles, and everything seemingly works just fine. I can create a new campaign in EXM and I can send a test mail from "Review". However, the test mail doesn't replace my custom tokens.



Having googled a bit I found this question, which is similar, but not identical. The answer to that question was that the custom facets had not been added to the custom DispatchTask.



My custom facets, however, have been added to my custom DispatchTask, and I know that there's nothing wrong with them as I can read and write to them in XConnect and through Tracker.Current.Contact.



It seems that my CustomDispatchTask class is never executed, which explains why my custom tokens are not replaced.



/sitecore/admin/showconfig.aspx shows that my custom class has indeed been patched in:



<exm>
<dispatchTask
type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName"
patch:source="My.EXM.config">
.....
</dispatchTask>
</emx>


But if I try to debug either the constructor or the overridden GetContacts methods, the breakpoints are never hit. I also added some logging to it (in case this code is executed on AppStart where I won't be able to debug fast enough) but those log messages never appear in the log file. There are actually no exceptions or errors in the log files at all.



Why isn't my CustomTokensDispatchTask executed?



CustomTokensDispatchTask.cs



public class CustomTokensDispatchTask : DispatchTask

private readonly IContactService _contactService;

public CustomTokensDispatchTask([NotNull] ShortRunningTaskPool taskPool, IRecipientValidator recipientValidator, IContactService contactService, EcmDataProvider dataProvider, ItemUtilExt itemUtil, IEventDataService eventDataService, IDispatchManager dispatchManager, EmailAddressHistoryManager emailAddressHistoryManager, IRecipientManagerFactory recipientManagerFactory, SentMessageManager sentMessageManager)
: base(taskPool, recipientValidator, contactService, dataProvider, itemUtil, eventDataService, dispatchManager, emailAddressHistoryManager, recipientManagerFactory, sentMessageManager)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask", this);
_contactService = contactService;


protected override IReadOnlyCollection<IEntityLookupResult<Contact>> GetContacts(List<DispatchQueueItem> dispatchQueueItems)

Sitecore.Diagnostics.Log.Info("HELLO CustomTokensDispatchTask.GetContacts", this);
return _contactService.GetContacts(dispatchQueueItems.Select(x => x.ContactIdentifier),
PersonalInformation.DefaultFacetKey,
AddressList.DefaultFacetKey,
EmailAddressList.DefaultFacetKey,
ConsentInformation.DefaultFacetKey,
PhoneNumberList.DefaultFacetKey,
ListSubscriptions.DefaultFacetKey,
MyCustomFacet.DefaultFacetKey);




My.EXM.Config



<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns:set="http://www.sitecore.net/xmlconfig/set">
<sitecore>
<exm>
<dispatchTask set:type="My.Namespace.CustomTokensDispatchTask, MyAssemblyName">
</dispatchTask>
</exm>
<recipients>
<recipientPropertyTokenMap set:type="My.Namespace.CustomTokensTokenMap, MyAssemblyName">
</recipientPropertyTokenMap>
</recipients>
</sitecore>
</configuration>


Sitecore 9.0.2







exm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 3 hours ago

























asked 3 hours ago









GTHvidsten

1627




1627











  • Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
    – Peter Prochazka
    3 hours ago










  • Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
    – GTHvidsten
    3 hours ago










  • Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
    – GTHvidsten
    2 hours ago










  • You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
    – Peter Prochazka
    2 hours ago










  • I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
    – Peter Prochazka
    2 hours ago
















  • Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
    – Peter Prochazka
    3 hours ago










  • Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
    – GTHvidsten
    3 hours ago










  • Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
    – GTHvidsten
    2 hours ago










  • You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
    – Peter Prochazka
    2 hours ago










  • I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
    – Peter Prochazka
    2 hours ago















Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
– Peter Prochazka
3 hours ago




Can you please update your question @GTHvidsten with content of My.EXM.config? Could be that the problem is with patching. I just want to clarify that.
– Peter Prochazka
3 hours ago












Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
– GTHvidsten
3 hours ago




Added My.EXM.Config now. As you can see by the excerpt from showconfig.aspx this is indeed patched in correctly.
– GTHvidsten
3 hours ago












Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
– GTHvidsten
2 hours ago




Yes. As I mentioned using the custom facets in XConnect and through Tracker.Current.Contact works just fine
– GTHvidsten
2 hours ago












You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
– Peter Prochazka
2 hours ago




You aren't in emulation mode right? doc.sitecore.net/email_experience_manager/…
– Peter Prochazka
2 hours ago












I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
– Peter Prochazka
2 hours ago




I have read your question once again. You mentioned there that you are sending test mail. Are you using "Send quick test" functionality for this? doc.sitecore.net/email_experience_manager/… .
– Peter Prochazka
2 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Because you are using "Send quick test" functionality, EXM won't hit your dispatch task.



For "Send quick test" functionality DispatchNewsletter pipeline is using SendTestMessage and therefore TestMessageTask is called instead of your custom DispatchTask.



You need to send email campaign only to your "test" contact to hit your custom Dispatch Task






share|improve this answer






















  • If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
    – GTHvidsten
    2 hours ago











  • You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
    – Peter Prochazka
    2 hours ago










  • "Preview for recipients" still doesn't replace my custom tokens with the actual values.
    – GTHvidsten
    2 hours ago










  • And when you send email campaign? Are you hitting your code?
    – Peter Prochazka
    2 hours ago










  • I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
    – Peter Prochazka
    2 hours ago











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14823%2fcustom-exm-dispatchtask-is-never-executed%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










Because you are using "Send quick test" functionality, EXM won't hit your dispatch task.



For "Send quick test" functionality DispatchNewsletter pipeline is using SendTestMessage and therefore TestMessageTask is called instead of your custom DispatchTask.



You need to send email campaign only to your "test" contact to hit your custom Dispatch Task






share|improve this answer






















  • If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
    – GTHvidsten
    2 hours ago











  • You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
    – Peter Prochazka
    2 hours ago










  • "Preview for recipients" still doesn't replace my custom tokens with the actual values.
    – GTHvidsten
    2 hours ago










  • And when you send email campaign? Are you hitting your code?
    – Peter Prochazka
    2 hours ago










  • I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
    – Peter Prochazka
    2 hours ago















up vote
3
down vote



accepted










Because you are using "Send quick test" functionality, EXM won't hit your dispatch task.



For "Send quick test" functionality DispatchNewsletter pipeline is using SendTestMessage and therefore TestMessageTask is called instead of your custom DispatchTask.



You need to send email campaign only to your "test" contact to hit your custom Dispatch Task






share|improve this answer






















  • If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
    – GTHvidsten
    2 hours ago











  • You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
    – Peter Prochazka
    2 hours ago










  • "Preview for recipients" still doesn't replace my custom tokens with the actual values.
    – GTHvidsten
    2 hours ago










  • And when you send email campaign? Are you hitting your code?
    – Peter Prochazka
    2 hours ago










  • I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
    – Peter Prochazka
    2 hours ago













up vote
3
down vote



accepted







up vote
3
down vote



accepted






Because you are using "Send quick test" functionality, EXM won't hit your dispatch task.



For "Send quick test" functionality DispatchNewsletter pipeline is using SendTestMessage and therefore TestMessageTask is called instead of your custom DispatchTask.



You need to send email campaign only to your "test" contact to hit your custom Dispatch Task






share|improve this answer














Because you are using "Send quick test" functionality, EXM won't hit your dispatch task.



For "Send quick test" functionality DispatchNewsletter pipeline is using SendTestMessage and therefore TestMessageTask is called instead of your custom DispatchTask.



You need to send email campaign only to your "test" contact to hit your custom Dispatch Task







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 2 hours ago









Peter Prochazka

3,8781734




3,8781734











  • If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
    – GTHvidsten
    2 hours ago











  • You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
    – Peter Prochazka
    2 hours ago










  • "Preview for recipients" still doesn't replace my custom tokens with the actual values.
    – GTHvidsten
    2 hours ago










  • And when you send email campaign? Are you hitting your code?
    – Peter Prochazka
    2 hours ago










  • I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
    – Peter Prochazka
    2 hours ago

















  • If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
    – GTHvidsten
    2 hours ago











  • You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
    – Peter Prochazka
    2 hours ago










  • "Preview for recipients" still doesn't replace my custom tokens with the actual values.
    – GTHvidsten
    2 hours ago










  • And when you send email campaign? Are you hitting your code?
    – Peter Prochazka
    2 hours ago










  • I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
    – Peter Prochazka
    2 hours ago
















If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
– GTHvidsten
2 hours ago





If this is the case, how can you make sure that your custom tokens are replaced properly without having to actually send the campaing (or creating a campaign with one user, as suggested, and then having to copy settings from one campaign to the other, or having to reset engagement plans)? (It seems a bit silly to not be able to test custom tokens)
– GTHvidsten
2 hours ago













You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
– Peter Prochazka
2 hours ago




You can use "Preview for recipients" button under Message tab where you edit content of message. Take a look here -> doc.sitecore.net/email_experience_manager/… section "Preview the token for different recipients"
– Peter Prochazka
2 hours ago












"Preview for recipients" still doesn't replace my custom tokens with the actual values.
– GTHvidsten
2 hours ago




"Preview for recipients" still doesn't replace my custom tokens with the actual values.
– GTHvidsten
2 hours ago












And when you send email campaign? Are you hitting your code?
– Peter Prochazka
2 hours ago




And when you send email campaign? Are you hitting your code?
– Peter Prochazka
2 hours ago












I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
– Peter Prochazka
2 hours ago





I have to draw back my previous statement. Obviously "Preview for recipients" won't call your custom Dispatch Task :) I was too quick with writing it down. But still tokens should be replaced with preview...
– Peter Prochazka
2 hours ago


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14823%2fcustom-exm-dispatchtask-is-never-executed%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke