-
GeneralCallback Event Script & Adhoc SubWorkflow
Hi Folks, I have a GeneralCallBack event script that is selected to run when the step is ready. This works fine but its running twice, when it creates an adhoc subworkflow (like when its assigned to a group and full expand is chosen so all members in a group get the step) and for individual steps within the subworkflow. Is…
-
Replicating DocumentCreateOrUpdate OScript logic via OOTB APIs
Hello, We have a custom OScript module that creates business attachments by calling the following function: XECMPFNA::BulkActions::DocumentCreateOrUpdate.execute(). This logic creates documents and automatically inserts related entries into the XECMPFNA_DOCUMENTS table. These entries are then used in our downstream…
-
Oscript help with my code auto close script
hello, My callback function is not working, please help public function Dynamic autoCloseStep( \ Object prgCtx, \ WAPIWORK work, \ Integer workID, \ Integer subWorkID, \ Integer taskID, \ Integer returnSubWorkID, \ Integer returnTaskID, \ Dynamic extraData = Undefined ) Object tempPrgCtx = prgCtx // Create admin session…
-
Oscript: insert data to Forms table
In OpenText Content Server, the Forms module allows you to create a table and later insert data using a WebReport tag with the destination set to the form. How can I achieve the same result using Oscript? Specifically, how can I insert data into a Forms table (i.e., submit a new form entry) via Oscript?
-
Automate Object Importer/Exporter
Hello everyone, I would like to manage via script the export/import of data from a Content Server instance to another using Object Importer/Exporter. Is there any way to start the the object export emulating what happens in the page /otcs/cs.exe?func=oe.ManualExport? In the same way than I would like to start object import…
-
Feature request - automatically build module.ini file when doing build clean
Hi, I am recently faced with a client requirement to embed a build number/code into my module ini file. I know that yeah, the webmodule object in Oscript has the '0 DumpModuleConfigToFile' function, and that we can override it to add our own tags, but what I really want is a way to have build clean regenerate the…
-
How to send multiples of same param name with RestClient
I've discovered what I believe is a shortcoming of the RestClient drop-in. If you're POSTing to a service which responds to multipart-form-data requests, then they may expect you to send multiples, for instance in the equivalent GET, how would you manage something like…
-
Enterprise Scan script - assign document number to Batch field
Hi, please kindly support me - how to build a script that can assign each (PDFs) document number ( Doc. 1, Doc. 2, Doc 3, ….) into field "Batch" (Properties →Document→Batch).
-
The items are not from the same database
In workflow, we have a EventScript which is simply there to initiate another series of workflow instances based on the attributes of the WF you are creating. After upgrading from CS16.2.4 to 22.3 (16.2.21.2017), this event script has stopped working. Having debugged it and stepped through into the Core modules, we have…
-
Error at File.Open() - Could not open file
Hi, I am getting error in my custom class: Could not open file. File contactFile = File.Open("E:\Contacts.txt", File.ReadMode) OTCS is installed in E:\OTCS241 Eclipse uing Workspace E:\Workspace