Initial commit
This commit is contained in:
36
BPMSoft - ELMA/Методы для общения с CRM от ELMA.md
Normal file
36
BPMSoft - ELMA/Методы для общения с CRM от ELMA.md
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
1. Добавить в `appsettings.json`
|
||||
1. ```json
|
||||
"BPMSoft.Configuration.ElmaService.ElmaService": [
|
||||
"/ServiceModel/ElmaService.svc"
|
||||
],
|
||||
```
|
||||
2. Добавить в `BPMSoft.WebHost.dll.config`
|
||||
1. `<add key="AllowedLocations" value="ServiceModel/ElmaService.svc;...`
|
||||
3. Добавить логи
|
||||
|
||||
```json
|
||||
<logger name="ElmaSyncHelper" writeTo="ElmaSyncHelperAppender" minlevel="Debug" final="true" />
|
||||
<logger name="ElmaService" writeTo="ElmaServiceAppender" minlevel="Debug" final="true" />
|
||||
```
|
||||
|
||||
```js
|
||||
callElmaService: function () {
|
||||
const request = {
|
||||
Id_crm: this.get("Id"),
|
||||
chain_of_approval: "test1, test2"
|
||||
};
|
||||
|
||||
const config = {
|
||||
serviceName: "ElmaService",
|
||||
methodName: "CreateOrderApproval",
|
||||
data: {
|
||||
request: request
|
||||
}
|
||||
};
|
||||
|
||||
this.callService(config, function(response) {
|
||||
debugger;
|
||||
}, this)
|
||||
},
|
||||
```
|
||||
Reference in New Issue
Block a user