Nour Khaled
05/20/2025, 9:04 PMCeligo AI
05/20/2025, 9:05 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like you're trying to trigger a workflow using SuiteScript and encountering an issue with
workflowaction227
not being defined.
In your code, workflowaction227
is being used as the actionId
in the workflow.trigger
function. However, it seems like workflowaction227
is not defined anywhere in your code, hence the error.
The actionId
parameter should be the internal ID of the action you want to trigger in the workflow. You need to replace workflowaction227
with the actual internal ID of the workflow action you want to trigger.
Here's an example of how you might define it:
javascript
var workflowaction227 = 'customworkflowaction_myaction'; // replace with your actual workflow action internal ID
var workflowInstanceId1 = workflow.trigger({
recordId: transferOrderId, // replace with an actual record id
recordType: 'transferorder',
workflowId: '119',
actionId: workflowaction227
});
Please replace 'customworkflowaction_myaction'
with the internal ID of your actual workflow action.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
05/20/2025, 9:05 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827088475
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8236081
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822191834
Celigo AI
05/20/2025, 9:05 PMAaron McCausland
05/20/2025, 9:12 PM