Question

How can I call my method using Script task

Hi, 

 

I have this test code in source code schema, 

 

How can I call this In script task?

 

Thanks

 

Like 0

Like

4 comments

Hi Akshit,

 

Create an instance of your Example class and call the Execute method in the script task. For example study how the CreateReminding method is called in the "Push notification" script task of the OOB "Push expired licenses notification" business process.

 

Best regards,

Oscar

Oscar Dylan,

 

Thank you for the response, 



This is the code below : 

 

This is how I am calling it : 

 

But when I run the business process this is the error I am getting : 

 

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified

 

 

Can anyone please help me what should I do next ?

 

Thanks!

Akshit,

 

Most probably you haven't added Terrasoft.Configuration namespace as a using in your process as well as System.Threading.Tasks. Additionally to it I cannot see creating an instance of the Example class in your script task code.

 

Best regards,

Oscar

I have added the following : 

 

But still gettting the same issue?

 

From the error I get this as resolution https://github.com/box/box-windows-sdk-v2/issues/225#issuecomment-277012542  

 

But didn't understand what exactly I have to do? Like which assembly(dll file) I need to place in creatio?

Show all comments