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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 App for Outlook JavaScript customizations

(0) ShareShare
ReportReport
Posted on by 655

Folks,

I want to customize the forms for the Outlook Dynamics 365 app.  Specifically the form that creates a task.  I found a sample that shows how to 'Created dependent OptionSets (picklists)' and it works great in Dynamics 365.  The JavaScript code behaves correctly without issue.

The problem i'm encountering is in both Outlook for Web (OWA) IE11 and Outlook 2016.  The funny thing is that with Chrome i have absolutely NO problems!

In OWA using IE11 it errors out on this line:

//For each option value, get the definition from the attribute and add it to the control.
        validOptionValues.forEach(function (optionValue) {
            //Get the option defnition from the attribute
//Errors out on the line below var option = childFieldAttribute.getOption(parseInt(optionValue)); //Add the option to the control c.addOption(option); })

With the following error:

owaerr.PNG

For Outlook 2016, i get the following error:

8032.outlook.PNG

Can anyone see why it would fail in IE11 / Outlook (because it's using IE11 not default browser) and work correctly in Chrome?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi, there seems to be a number of different errors here - none of which correspond to that code!

    The most common reason for JavaScript not working on the app forms is that the form that is shown is the first form in the list and if it doesn't have the fields needed for the script then you'll get similar errors to those you are seeing. Check that the fields that the script needs are on the form.

    Hope this helps

  • Suggested answer
    SavvyLuke Profile Picture
    655 on at

    Thanks for the reply Scott,

    I did check if my form was missing fields, but that was not the case.  I had to purge my cache in IE and then it worked.  I learned today that if it works in Chrome it should work in IE and ALWAYS purge cache before testing.

    It now works correctly in all browsers using Outlook for web access, but i'm still having a problem out of Outlook 2016.

  • Tomi A. Profile Picture
    15 on at

    Hi Luke,

    Good question. Did you ever find a solution to this regarding the Outlook 2016 client?

    Thanks

    Tomi

  • SavvyLuke Profile Picture
    655 on at

    Hi Tomi,

    I could not get it to work.  I just went with option sets that are not dependant and that seemed to work.

  • Tomi A. Profile Picture
    15 on at

    Ok, thanks for the reply!

  • Abhinaya Profile Picture
    40 on at

    Hi Luke

    I am also getting error while creating case using dynamics 365 App in chrome as well as IE . I am using Outlook 2013. How did you rectify your errors?

    3806.Error.PNG

  • SavvyLuke Profile Picture
    655 on at

    Hey there, it seems that there might be an issue with your JavaScript code.  My code was working for outlook for web but not within outlook itself.  What is your custom code supposed to do?

  • Community Member Profile Picture
    on at

    Hi,

    Were you able to resolve the issue with the Outlook Desktop Application? Please let me know, as I ran into a similar issue.

    Thanks,

    Sravya

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans