Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Email is read only in interactive hub

Posted on by 120

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
    Community Member Profile Picture
    Community Member Microsoft Employee 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.

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 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

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans