PL-400 · Question #183
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might…
The correct answer is A. Yes. In this variant of the series, the proposed solution does meet the stated goals. The correct approach involves using Xrm.Navigation.openForm() with the appropriate parameters object - including extraqs to pass the contact type value - and then reading that value on the Contact…
Question
Options
- AYes
- BNo
How the community answered
(54 responses)- A80% (43)
- B20% (11)
Explanation
In this variant of the series, the proposed solution does meet the stated goals. The correct approach involves using Xrm.Navigation.openForm() with the appropriate parameters object - including extraqs to pass the contact type value - and then reading that value on the Contact form using formContext or Xrm.Page.context.getQueryStringParameters() to determine which form layout to display. When the parameter is correctly passed and consumed, a form selector or JavaScript on the Contact form can switch to the appropriate layout based on the contact type, satisfying both requirements: opening the form automatically and switching layout based on contact type.
Community Discussion
No community discussion yet for this question.