Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I've created two custom entities Campus and Student. Student has a Lookup field to Campus.
I'd like to be able to create new Student records upon a button click from a Campus record (I created an 'Add Student' button to Campus entity using ribbon workbench).
Both of the entities have an Address field and I'd like the Address field in Campus to be mapped to the address field of Student.
In the 1:N relationship between the two entities I used mapping to map both of the fields ,but when I click on Add Student the field Address in the opened Student record remains empty.
What could be the problem here? Is it not how mapping works?
I'd appreciate help
I think the mapping only works in the UI if you pass additional parameters on the querystring extraqs parameter. These are _CreateFromId and _CreateFromType. If you go to the Navigation item for Students on the Campus form, then click Add New Student, you can see what the querystring should look like. However, I don't think these are documented, so they are officially unsupported.
Mapping the fields in the 1:N relationship will not work unless you are creating the child record from the sub-grid of the parent record.
On the change event of the lookup you should call WebApi function to retrieve the address field values from the Campus entity and populate them in the Student entity. Mapping only works when you add the student by clicking on the Add New Student from within the Campus record.
Hope this helps.
So what you're saying is I need to create a sub grid in Campus that lists all related Student records and then mapping will work? Does mapping only work on sub grids?
I see. Thank you for helping me understand that.
Business Applications communities