Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Retrieving list of case messages using nlapiSearchRecord
Does anyone have an example of how I can retrieve and loop through all messages on a given support case using a scheduled script?
I'm assuming I'll have to use nlapiSearchRecord, but I'm not sure of how to specify the case number. I tried filtering by "record" but that does not accept the Internal ID of the case.
If anyone also has an easy way of sorting these messages by date in the search results that would also be great, but I can always sort this using array functions if need be.
0