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

Announcements

No record found.

News and Announcements icon
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

  • Suggested answer
    CRMJetty Profile Picture
    3,514 on at

    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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans