Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Add entity notes to another entity's form - crm2011

(0) ShareShare
ReportReport
Posted on by 160

Hi everyone

I have to custom entity A and B.

Now I want to add A's notes section into B's form, and I need to be able to edit A's notes in B's form.

I use iframe to get A's entity id and object id, and put the link in the iframe to show.

The note section shows correctly in B's form, and edit existing note record is fine as well.

However, if I try to add a new note, and error happened. I checked details, found that the entity id is not A's entity id in the iframe, but B's entity id. So it throw an error said "the record with id "XXXXXX" in entity A cannot be found. Is there any ideas?

*This post is locked for comments

  • Suggested answer
    Andre Margono Profile Picture
    Andre Margono 2,602 on at
    RE: Add entity notes to another entity's form - crm2011

    Hi Kevin, I don't think this is a supported customisation. There are a bunch of OOTB script that currently used by that notes control to manipulate DOM and trigger events on certain behaviour. The script is trying to find the 'Notes' object, thus it picked up the Notes control on the Entity B.

    The only alternative to achieve your requirement is to create your own web resource control that programmatically create/update the notes.

    Or put a lookup reference to Entity A to open that record and edit the Notes directly from there.

    Edit: was writing this answer and Scott already answered and mentioned another alternatives

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 50,177 on at
    RE: Add entity notes to another entity's form - crm2011

    Hi, this isn't a supported scenario and generally there are always problems when embedding UI elements in iframes. Could you not still allow notes on entity B put pull together an aggregate view on entity  A or even use a workflow/plugin to mirror/copy notes from B up to A. Without knowing the specific scenario, it is hard to suggest any other solution.

    Hope this helps,

    Scott

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans