nerdexam
Microsoft

MB2-876 · Question #68

You are adding custom JScript code to the Account entity. The custom code will retrieve data from an associated Contact by using the SOAP protocol. Which method returns the SOAP header that will…

The correct answer is A. Xrm.Page.context.getAuthenticationHeader(). See the full explanation below for the reasoning.

Question

You are adding custom JScript code to the Account entity. The custom code will retrieve data from an associated Contact by using the SOAP protocol. Which method returns the SOAP header that will properly pass the user's credentials as part of the SOAP call?

Options

  • AXrm.Page.context.getAuthenticationHeader()
  • BXrm.Page.context.getUserId()
  • CGenerateAuthenticationHeader()
  • DXrm.Page.context.getUserLcid()

How the community answered

(31 responses)
  • A
    81% (25)
  • B
    6% (2)
  • C
    3% (1)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full MB2-876 Practice