I'm interested in utilizing the Script element within Creatio. Where can I find reference materials or code samples for C#?
Additionally, is there a platform available to compile C# code snippets before directly uploading them to the Creatio Platform (in the Script Task Element)?
All available examples of using the code in the script task element can be found here. As for checking the C# code - there is no such platform for business processes script tasks. You can create a code in Visual Studio and check if it works. Then, using the provided article, implement the same functionality in the business process script task.
Is it also possible to create your Standard source code and call those from a script task? Similar to Process to calculate actual working time in projects on schedule?
as in OOP you can create an instance of a class and use its methods in the logic of a business process. Use Terrasoft.Configuration in the business process (add it to the process usings in the process settings) and create an instance of your class as SomeClass nameOfTheInstance = new SomeClass().
You can enable development in the file system as described here and there won't be a need to manually import packages in the Visual Studio. You will be able to review the code and apply changes to it.
In order to use the static “Math” class in C# code you should add the “System” namespace to the file:
using System;
If the issue still exists, please provide us with a source code of the module and the error message. It will help us to analyze the issue in more details.
Additionally, please find more information about the “Math” class in the article by the link below:
It is impossible to use C# code inside JS code. Please note that it exists similar “Math” object in JS language. Please find more information about it in the article by the link below: