new CrmEnv( [env])
Create a Crm Environment. Set null when executed from browser
Parameters:
| Name |
Type |
Argument |
Description |
env |
Object
|
<optional>
|
The definition object of the targeted CRM environment
Properties
| Name |
Type |
Argument |
Default |
Description |
url |
string
|
<optional>
|
""
|
The URL of Efficy Enterprise, e.g. https://mycompany.efficy.cloud/. Set null when executed from browser |
customer |
string
|
<optional>
|
""
|
The optional customer profile name |
logOff |
boolean
|
<optional>
|
false
|
if true, logoff the session after the next executeBatch(); |
apiKey |
string
|
<optional>
|
""
|
The API Key, if user and password are not used |
user |
string
|
<optional>
|
""
|
The user credential |
pwd |
string
|
<optional>
|
""
|
The password credential |
cookies |
array
|
<optional>
|
[]
|
Optional cookie setting |
|
- Source:
-
- Tutorials:
-
Example
new CrmEnv({
"url": "https://mycompany.efficy.cloud/",
"apiKey": "86E353284C0C4A848F7ADEA13589C8B6"
});