Free Microsoft Dynamics MB-820 Actual Exam Questions - Question 5 Discussion
DRAG DROP You are developing an XMLport to export data from the parent Item table and a related child "Item Unit of Measure' table. The XMLport configuration must provide the following: • Link the child table to its parent. • Display a confirmation message after the XMLport runs. You need to generate the XMLport. What should you do? To answer, move the appropriate triggers to the correct requirements. You may use each trigger once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. 
I think OnPreDataItem might not be the best for linking child to parent since it runs before data processing, so it’s probably more for setup. OnAfterGetRecord makes more sense because it fires after each record is read, which fits linking children. For the confirmation message, OnClosePage seems logical since it triggers once everything’s done, ensuring the message appears after the whole export. So, OnAfterGetRecord for linking and OnClosePage to confirm feels like the natural fit here.
Link child to parent: OnAfterGetRecord; confirmation message: OnClosePage works well.
I think for linking the child table to the parent, OnAfterGetRecord makes sense because it lets you process each record after it’s fetched, keeping the relationship intact. For showing a confirmation message once the entire export finishes, OnClosePage is the right place since it triggers after the process ends. This way, you avoid popping up messages mid-export and keep things smooth. Using these two triggers matches both requirements without mixing concerns.
For linking child to parent, use the OnAfterGetRecord trigger. For displaying confirmation after run, the OnClosePage trigger fits best. They handle those tasks cleanly.