new CrmExecutions(CrmConnector) → {Object}
Initialize the Crm Object which is responsible for executions
Parameters:
Name | Type | Description |
---|---|---|
CrmConnector |
CrmConnector | Initialized Object (CrmConnector().init(instance)) |
Returns:
object which binds the following methods:
- retrieve
- updateSingleProperty
- updateEntry
- createEntry
- deleteEntry
- Type
- Object
Methods
(static) createEntry(CrmObject) → {Promise}
Try to create the passed CrmObject to the connected Api
Parameters:
Name | Type | Description |
---|---|---|
CrmObject |
CrmObject |
Returns:
from DynamicsCrmApi module
- Type
- Promise
(static) deleteEntry(CrmObject) → {Promise}
Try to delete the passed CrmObject to the connected Api
Parameters:
Name | Type | Description |
---|---|---|
CrmObject |
CrmObject |
Returns:
from DynamicsCrmApi module
- Type
- Promise
(static) retrieve(entity, guid, fields) → {Promise}
Try to receive information from the connected Api
Parameters:
Name | Type | Description |
---|---|---|
entity |
string | example "leads" |
guid |
string | example 8724F789-D3D8-E711-8120-5065F38B4651 |
fields |
Array.<Object> | example ["fullname", "subject"] |
Returns:
from DynamicsCrmApi module
- Type
- Promise
(static) updateEntry(CrmObject) → {Promise}
Try to update the passed CrmObject to the connected Api
Parameters:
Name | Type | Description |
---|---|---|
CrmObject |
CrmObject |
Returns:
from DynamicsCrmApi module
- Type
- Promise
(static) updateSingleProperty(entity, guid, keyValuePair) → {Promise}
Try to update the passed information to the connected Api
Parameters:
Name | Type | Description |
---|---|---|
entity |
string | example "leads" |
guid |
string | example 8724F789-D3D8-E711-8120-5065F38B4651 |
keyValuePair |
JSON | example { description: "node update" } |
Returns:
from DynamicsCrmApi module
- Type
- Promise