web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Email is read only in interactive hub

(0) ShareShare
ReportReport
Posted on by 122

HI,

In customer  service hub email form is read only and cant edit regarding field in dynamics 365 on premise version 9.0.  Any suggestion on this issue.

Thanks

I have the same question (0)
  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at
    RE: Email is read only in interactive hub

    Hello,

    pls refer this link

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/208188/crm2016-mail-from-is-readonly/545759

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Email is read only in interactive hub

    Hi Thomas,

    If it is read-only after sending email and status is completed, you can use js code to unlock all controls.

    function unlockEmail(executionContext) 
    {
        const form = executionContext.getFormContext();
        const headerControl = form.getControl('header_statecode');
        var status = headerControl.getAttribute().getText();
        if(status=="Completed")
        {
            Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {    
                var control = Xrm.Page.getControl(attribute.getName());
                if (control) {
                    control.setDisabled(false);
                }
            });
        }
    }
    

    2.Add js to web resource.

    Go settings > Customization > Customize the system > web resource.

     pastedimage1606894164457v1.png

    3.Add it to the email onLoad event.

     Go settings > Customization > Customize the system > entities > email > form > main form.

    pastedimage1606894380610v2.png

    4.Test.

    pastedimage1606894401440v3.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 60 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 36 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans