Newer Version Available

This content describes an older version of this product. View Latest

LoginScopeHeader

Specifies your organization ID so that you can authenticate Self-Service users for your organization using the existing login().

API Calls

login()

Fields

Element Name Type Description
organizationId ID

The ID of the organization against which you will authenticate Self-Service users.

portalId ID
Specify only if user is a Customer Portal user. The ID of the portal for this organization. The ID is available in the Salesforce user interface:
  • From Setup, enter Customer Portal Settings in the Quick Find box, then select Customer Portal Settings
  • Select a Customer Portal name, and on the Customer Portal detail page, the URL of the Customer Portal displays. The Portal ID is in the URL.

Sample Code—C#

This sample shows how to use the LoginScopeHeader. It sets the organization ID and the portal ID for a Customer Portal user. It also sets the CallOptions header. It then logs the specified user in.