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)

Lookup field : create new record

(0) ShareShare
ReportReport
Posted on by

In the lookup field you can create a new record by selecting the New button.

Is there a way to pass data from the current form to the newly created form when there's a N:N relationship between current entity and newly created entity?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    T.I.A Profile Picture
    1,760 on at

    are you looking for something like this? blog.fullscope.com/save-time-entering-data-into-crm-by-mapping-fields-between-records

  • Community Member Profile Picture
    on at

    Yes but in my case there's a N:N relationship in between the 2 entities. (A-B)

    On entity A I'm opening the lookup to B and click at the New button. In that new record of entity B I want to have a field X populated with the value of that field X on entity A.  In customizations, mappings are not available at the N:N relationship.

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    Hi,
    It is not possible to create a OOB mapping for N:N entity. You have to write a custom logic using Plugin/JS.
  • Community Member Profile Picture
    on at

     Yes I did already try that but I keep getting this error when querying the target, because I have to get the value of a lookupfield in the target entity to update I in the newly created entity.

    Entity entity = service.Retrieve(target.LogicalName, target.Id, new ColumnSet(true));
               

    Unexpected exception from plug-in (Execute): System.TypeLoadException: Inheritance security rules violated while overriding member: 'Microsoft.IdentityModel.Claims.ClaimsIdentity.System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

  • Suggested answer
    Community Member Profile Picture
    on at

    I managed to do this with the Window localStorage Property.

    Tested it in chrome, IE11 and Edge. 

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