Professional > Interview scripting > Using Interview Services > Salesforce Interview Service > ISalesforceService interface
 
ISalesforceService interface
The ISalesforceService interface properties are used by the InterviewServices object to configure the service. The interface can also be used within a standalone mrScriptBasic script, allowing the Salesforce.com service to be used outside of the Interview Services framework. See Accessing the Salesforce service from mrScriptBasic for more information.
The ISalesforceService interface exposes the following members:
URL
Type: String
Default value: https://login.salesforce.com/services/Soap/c/24.0
This is the login URL for Salesforce.com and should not normally need to be changed. The Salesforce.com service will automatically switch to using the URL provided by Salesforce.com during the login process.
Username
Type: String
Default value: Empty string
The Salesforce.com login user name.
Password
Type: String
Default value: Empty string
The Salesforce.com login password. It may be necessary to append a security token. Refer to the Security Token topic on the Salesforce.com site for more information:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_concepts_security.htm#topic-title_login_token
LoginRefreshInterval
Type: Long
Default value: 3600sec (60 minutes)
The ISalesforceService.ClientFactory.CreateClient() method returns a logged in client. The thought is that the first client would perform a login request and obtain the sessionId. Subsequent clients would just use that sessionId. If it is more than LoginRefreshInterval since the last client was created, a new login will occur to set a new sessionId.
See also
Accessing the Salesforce service from the interview routing script
Accessing the Salesforce service from mrScriptBasic
Salesforce Interview Service