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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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
    ScottDurow Profile Picture
    25 on at

    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

  • Suggested answer
    Andre Margono Profile Picture
    2,602 on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
TNJ_CRM_Team Profile Picture

TNJ_CRM_Team 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans