Run business process via web-service

Hi All,

 

I would like to execute a business process from a 3rd party tool. I found this Creatio article for this purpose. 

 

I followed each step on this article to define business processes to add contact and list contacts. When I save the process, I see pop-up screen to "Publish" the business process. When I try to publish it, I receive "The name ContactName does not exist in the current context" message. I also see same error message for other process paramaters (ContactPhone and ContactList) as shown below. 

 

 

Does anyone have any idea about this issue? I'm concerned if I'm missing a step or this article script content is not valid anymore. Thanks.

 

Like 0

Like

1 comments

Hello, 

 

Such error occurs when variables (ContactName, ContactPhone and ContactList) are not defined in the function, the code itself should be revised a bit. 

After adding 

var ContactName = Get<string>("ContactName");

var ContactPhone = Get<string>("ContactPhone");

.... etc

at the beginning of the Script Task element the process can be saved and published with no errors. 

 

Best regards, 

Anastasiia Zhuravel

Show all comments