Skip to main content

Dear Community friends,

I am having hard time to understand the best approach of executing the C# Code from Smartform itself. C# code is being used to integrate with Microsoft  Dynanics GP. All it does is it takes Data field values from Workflow ProcessInstance and smartbox and execute the methods. 

 

These C# Code runs only when user input all values and submit the workflow, however workflow should advance only when an itergation is successful and notify the user , if its failed or throw an exceptional error, then user should be notified that error and workflow should not advance and user should still be able to change the data in the smartform.

Working on the ASP.NET form is quite flexible to handle this situation but do not understand how it works in K2 smartform. Please help. Thanks.

Hi IPO

 

If I understand you correctly you want to be able to execute some custom C# code from your smartform or workflow?

 

The best approach to this would be to develop a custom service broker. This will allow you to create a SmartObject that exposes method/s to execute your C# code.

 

Have a look at the Blackpearl Developer Reference


Reply