Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Script Error: Using Marketing App in Teams

Posted on by 5

I'm having an issue with using D365 Marketing app in Teams. The issue does not occur otherwise. When trying to add a Marketing Email record (when click +New button), it's throwing a script error "Blocked a frame with origin ____ from accessing a cross-origin frame. The log file shows the onload function:

Error Details:
Event Name: onload
Function Name: MSDynCrmMkt.Handlers.onLoadEmail
Web Resource Name: msdyncrm_DynamicsMarketing.CrmWebResource
Solution Name: MicrosoftDynamics_Marketing
Publisher Name: microsoftdynamics

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Script Error: Using Marketing App in Teams

    Hi trystuff,

    This is CORS issue related to web security and it is by design.

    You need to change web resource file appropriately.

    Because of customization webresource file is trying to access Teams window element from inside an iframe of dynamics page. Teams app does not allow window.top element access by any hosted tab.

    As a workaround you can try to use window.parent instead of window.top

    Public documentation - https://docs.microsoft.com/en-us/dynamics365/teams-integration/teams-troubleshoot#error-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame 

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans