This collection contains different connector to realize operation on Salesforce.
mvn clean package
For each connector, the connection information are the same. The input name is "connection", a JSON content. In JSON, parameters are:
Name | optional? | Example |
---|---|---|
userName | ||
password | ||
token | ||
authEndPoint | optional | |
proxyHost | optional | |
proxyPort | optional | |
proxyPassword | optional | |
proxyUserName | optional | |
connectionTimeoutInMs | optional | |
readTimeoutInMs | optional | |
restEndPoint | optional | |
serviceEndPoint | optional |
Example:
{
"userName": "pierre",
"passwork": "myPassword",
"token": "1234"
}
Create one object in Salesforce.
In the API, it's possible to give a direct information to create an object, or a list of operation. This is piloted by the "mode" attribut.
{
"mode" : "SINGLE|LIST",
"ObjectType": ".....",
"ListOfAttributes": {
"name1": "value",
"name2": "value"
},
"operations": [
{
"ObjectType": ".....",
"ListOfAttributes": {
"name": "value"
}
}
]
}
According to the mode, the result contains one information, or a list of result.
{
"ObjectID" : "...",
"StatusOperation" : "",
"operations": [
{
"ObjectID" : "...",
"StatusOperation" : ""
}
]
}
Query in Salesforce.
Execute a query, which returns a list of objects.
{
"query": "....."
}
According to the mode, the result contains one information, or a list of result.
{
"operations": [
{
"ObjectID" : "...",
"ObjectType": ""
}
]
}
Load a object in Salesforce
In the API, it's possible to give a direct information to delete one object, or a list of operations. This is piloted by the "mode" attribut.
{
"mode" : "SINGLE|LIST",
"ObjectId": ".....",
"operations": [
{
"ObjectId": "....."
}
]
}
According to the mode, the result contains one information, or a list of result.
{
"ObjectID" : "...",
"StatusOperation" : "",
"ListOfAttributes" : {
"name1": "value",
"name2": "value"
},
"operations": [
{
"ObjectID" : "...",
"StatusOperation" : "",
"ListOfAttributes" : {
"name1": "value",
"name2": "value"
}
}
]
}
Update one object in Salesforce.
In the API, it's possible to give a direct information to delete one object, or a list of operations. This is piloted by the "mode" attribut.
{
"mode" : "SINGLE|LIST",
"ObjectId": ".....",
"ListOfAttributes" : {
"name1": "value",
"name2": "value"
},
"operations": [
{
"ObjectId": ".....",
"ListOfAttributes" : {
"name1": "value",
"name2": "value"
}
}
]
}
According to the mode, the result contains one information, or a list of result.
{
"ObjectID" : "...",
"StatusOperation" : "",
"operations": [
{
"ObjectID" : "...",
"StatusOperation" : ""
}
]
}
Delete one object in Salesforce.
In the API, it's possible to give a direct information to delete one object, or a list of operations. This is piloted by the "mode" attribut.
{
"mode" : "SINGLE|LIST",
"ObjectId": ".....",
"operations": [
{
"ObjectId": "....."
}
]
}
According to the mode, the result contains one information, or a list of result.
{
"ObjectID" : "...",
"StatusOperation" : "",
"operations": [
{
"ObjectID" : "...",
"StatusOperation" : ""
}
]
}