Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum

Test Send

(1) ShareShare
ReportReport
Posted on by 15

Hi Guys,

I need to append a Tag to the email subject when I select Test Send.

For exemple: [Test] - <subject>

I tried to create a workflow to run when a marketing email send test record is created but it's not working.

Does anyone has any suggestion?

Thanks,

Miguel

  • Suggested answer
    Miguelj333333 Profile Picture
    Miguelj333333 15 on at
    RE: Test Send

    Thanks!

    It worked for me =)

  • Suggested answer
    Miguelj333333 Profile Picture
    Miguelj333333 15 on at
    RE: Test Send

    Thanks!

    It worked for me =)

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Test Send

    Hi Partner,

    We could import a solution called Ribbon Workbench if we would like to make customization on ribbon button, then we can add javascript web resource for button and let function executes when we click button.

    Fortunately, client API also works in Marketing application form, so we can use Xrm.Page.getAttribute or formContext.getAttribute to get text in Subject field. 

    With this method Xrm.Page.getAttribute("msdyncrm_subject").getValue() we can get text in Subject easily.

    Please do follow steps:

    1. Add JS with function into your web resource 

    2. Import RW solution and open it in Settings > Customization

    3566.png

    3.  Find the Test Send button at Form Level

    20413.png

    4. Click + symbol in COMMANDS menu to add your own JS function

    556513.png

    5.  You will get Test Send button properties when you selected it,

    6281.png

    thenSet Command Id to Test Send button's Command Field and add your JS web resource.

    5633.png

    Notes:

    1. Call setValue() method has not effect on Subject field in ribbon(actually it worked in debugging, but value in input field not change) in my environment, so I append tag with native JS forcelly:

    var input = parent.document.getElementsByClassName("inputAssist");
      for (var i = 0; i < input.length; i++) {
      input[i].innerText = "[Test] " + input[i].innerText;

    }

    2. If you use executionContext method, please read this article.

    3. Your own JS function will replace original Quick Create function, my suggestion is that you could add a new button with your function on ribbon.

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans