Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Change the automatic "Draft" subject name - SaveAppointmentAsDraft

Posted on by 10
We have turned on the AllowSaveAsDraft setting on Appointments. After doing this, the Appointment name gets an automatic /[Draft]:/ text added to the front of the subject name (See image):
 
I would like to remove this.
 
This might be an obvious question, so all replies all very much appreciated!
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Change the automatic "Draft" subject name - SaveAppointmentAsDraft
    Hi,
     
    You can remove the draft prefix with JavaScript.
     
    function onload() {
            // Gets the HTML element for the title of the appointment entity.
           let title= window.top.document.querySelector("h1[data-id='header_title']");
     
           if(title){
            //If the title's HTML element is not null.
               
                let title_text = title.innerText;
                if(title_text.includes("[Draft]: ")){
                //If the title contains the /[Draft]: / prefix, remove this prefix.
                    title.innerText = title_text.replace("[Draft]: ","")
                }
     
           }else{
     
            //If the title's HTML element is null, it is refetched every 10 milliseconds until it is not null.
                setTimeout(onload,10)
           }
    }
     
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans