Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

Posted on by 10

Hello,

We use Dynamics 365.  Many of our users track emails in Dynamics 365 using the Outlook addin.  The little form that displays on the right side of the screen in Outlook.

The issue is, we added a field to the email table (dropdown list of type of interaction) and want user to update this from Outlook using the addin.  Is this possible?  Searched online but could not find anything.

If above is not possible - or very difficult - how can we unlock emails in Dynamics 365 after they have been tracked?  We wouldn't mind having the users go into Dynamics 365 and updating there - but all email activities display 'Read-only This record’s status: Completed'.

Appreciate any assistance you can provide,

Dan

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

     pastedimage1620089784640v1.png

    Thanks. 

    Regards,

    Leah Ju

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

  • RE: Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

    Thank you Leah!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

    Hi partner,

    You can't edit the field from outlook using the addin, but you can edit it in dynamics 365 through unlocking field.

    1.Business Rules(The simplest way).

    Create business rules and recommendations | Microsoft Docs

    Go Settings > Customizations > Customize the system > Entities > Email > Business Rules to create one as following screenshot:

    pastedimage1620007727779v2.png

    pastedimage1620007816768v4.png

    2.You can also use js code to unlock the field.

    (1)js code:

    function unlockField(executionContext) {
        var formContext = executionContext.getFormContext(); // get the form Context
        formContext.getControl("new_test").setDisabled(false);
    }

    (2)Add js to web resource.

    Go Settings > Customizations > Customize the system > Web Resource.

    pastedimage1620007005764v2.png

    (3)Add the web resource to email form onload function.

    Go Settings > Customizations > Customize the system > Entities > Email > Forms to open one form you need and click 'Form Properties'

    pastedimage1620006806178v1.png

    pastedimage1620006714778v3.png

    3.Test.

    Then you can find that optionset field(named test) can be changed with any value as your need.

    Before:

    pastedimage1620007603924v1.png  

    After:

    pastedimage1620006516798v2.png 

    Regards,

    Leah Ju

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

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

    Hi Dan,

    The other entities can be only added into the quick create list but cannot be updated.

    Add a custom entity to quick create in Dynamics 365 App for Outlook (Dynamics 365 apps) | Microsoft Docs

     

    At the same time, the completed emails cannot be modified.

     pastedimage1620006272988v1.png

    But there are still other ways to modify it.

    1. If you don't mind the emails with the completed status can be modified, the most straightforward way to unlock these fields is to use Business Rules.

    Set the condition as Status = Completed.

    pastedimage1620009549169v1.png

    Unlock the fields you want, then activate it.

     pastedimage1620009561581v2.png

    After setting these steps, you can update the fields you set in completed emails.

     pastedimage1620009568755v3.png

    1. You can modify it easily with Flow if you’re familiar to Power Automate.
    2. Update it with on-demand workflow. It is necessary to change the email into an open one, then modify it and switch it into completed again.

     pastedimage1620006281757v2.png

    Here is an example to update its content.

     pastedimage1620006313270v4.png

    pastedimage1620006324933v5.png

    This on-demand workflow can be triggered at the location shown below.

    pastedimage1620006568523v6.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

  • Need to add a custom field from the Email table/entity to the Dynamics Outlook addin

    Hello,

    We use Dynamics 365.  Many of our users track emails in Dynamics 365 using the Outlook addin.  The little form that displays on the right side of the screen in Outlook.

    The issue is, we added a field to the email table (dropdown list of type of interaction) and want user to update this from Outlook using the addin.  Is this possible?  Searched online but could not find anything.

    If above is not possible - or very difficult - how can we unlock emails in Dynamics 365 after they have been tracked?  We wouldn't mind having the users go into Dynamics 365 and updating there - but all email activities display 'Read-only This record’s status: Completed'.

    Appreciate any assistance you can provide,

    Dan

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans