How can I access the plannedtime sublist in a Work...
# ask-stanley-ai
r
How can I access the plannedtime sublist in a Work Order record through suitescript?
c
AI generated answer (using internal Slack threads):
To access the plannedtime sublist in a Work Order record through SuiteScript, you would need to load the record and then use the
getSublist
method. Here is a basic example:
Copy code
javascript
var record = nlapiLoadRecord('workorder', workOrderId);
var plannedTimeSublist = record.getSublist({
    sublistId: 'plannedtime'
});
In this example,
workOrderId
is the internal ID of the Work Order record you want to access. The
getSublist
method returns a sublist object that you can then interact with. Please note that the sublistId 'plannedtime' is just an example and you would need to replace it with the actual sublistId of the plannedtime sublist in your Work Order record. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838103592
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832629
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826078176
Please provide your feedback on this answer.