nerdexam
Microsoft

MB2-701 · Question #46

You write the following code segment to create a new account record by using the Representational State Transfer (REST) endpoint. Line numbers are included for reference only. Which code segment…

The correct answer is C. var ODataPath = Xrm.Page.context.getClientUrl() + "/XRMServices/2011/OrganizationData.svc". See the full explanation below for the reasoning.

Question

You write the following code segment to create a new account record by using the Representational State Transfer (REST) endpoint. Line numbers are included for reference only. Which code segment should you include at line 04 to create the URL to the Open Data Protocol (OData) endpoint?

Exhibit

MB2-701 question #46 exhibit

Options

  • Avar ODataPath = Xrm.Page.context,getClientUrl() + H/XRMServices/2eil/Discovery.svc";
  • Bvar ODataPath * Xrm.Page.context.getClientUrl() + M/XRMServices/2007/Organization.5vcM;
  • Cvar ODataPath = Xrm.Page.context.getClientUrl() + "/XRMServices/2011/OrganizationData.svc";
  • Dvar ODataPath = Xrm.Page.context,getClientUrl() + M/XRMServices/2011/Organization.svc";

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    76% (19)
  • D
    12% (3)

Community Discussion

No community discussion yet for this question.

Full MB2-701 Practice