Salesforce

Salesforce Resource (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Salesforce Resource (Magic xpi 3.x)

The Salesforce Resource Setting window contains the following parameters (parameters in bold are mandatory):

Parameter

Description

User Name

The user name identifies you to the Salesforce system. Enter a user name or click to open the Environment Variables List. Here, you can select an environment variable to use as the user name.

Note:

To work with the Salesforce Metadata API, make sure that the user name is set with the Modify All Data permission.

Password

The password confirms your identity to the Salesforce system.

Enter a password or click to open the Environment Variables List. Here, you can select an environment variable to use as a password.

Note:

  • A password entered as an environment variable is masked by asterisks.

  • Make sure that you add the security token you received from Salesforce to the password.

Endpoint URL

The Salesforce organization's login endpoint URL.

Enter the required endpoint URL or click to open the Environment Variables List. Here, you can select an environment variable to use as an endpoint URL. The default value of this field is the endpoint URL that is defined internally in Magic xpi. When you set an endpoint URL in this field, it overrides the default and the URL defined in the %SalesforceEndpoint% environment variable.

Since version: V3.2 SP1

Allow Field Truncation

In Salesforce (since API 15.0), if a field value is specified that is too large for the relevant field definition, the operation fails and the STRING_TOO_LONG fault code is returned. Salesforce's AllowFieldTruncationHeader property controls this behavior. The Allow Field Truncation field allows you to define the AllowFieldTruncationHeader property's behavior through Magic xpi.

Select one of the following from the drop-down list:

  • Yes (default): Truncates the field value if it is larger than the field definition, thereby avoiding a runtime error and subsequent operation failure. This also allows backward compatibility with projects developed prior to 3.2 SP1 (Salesforce API 12.0).

  • No: Does not truncate the field value. A runtime error is returned and the operation fails.

If you need to use both of these behaviors in the same project, you should define two identical resources where only the Allow Field Truncation property is different.

Since version: V3.2 SP1b

The Salesforce resource also gives you the following buttons:

Button

Description

Validate

Click this button to verify that the connection to the Salesforce server is valid. You will receive a message indicating that the connection is established, or an error message if the connection failed.

Objects List

This button creates the list of objects from Salesforce.

Note:

The Objects List has to be built in the resource; otherwise, you will not be able to get the Objects List in the step or trigger.

Reference
Attachment 
Attachment