Skip to main content

Notifications

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

Change the automatic "Draft" subject name - SaveAppointmentAsDraft

(0) ShareShare
ReportReport
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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans