How can you convert a string into a GmailThread object?
var threadid = PropertiesService.getScriptProperties().getProperty('threadid');
var msgs = threadid.getMessages(); //error
Thks, jfg
How can you convert a string into a GmailThread object?
var threadid = PropertiesService.getScriptProperties().getProperty('threadid');
var msgs = threadid.getMessages(); //error
Thks, jfg
Check
getThreadById(id)
ofGmailApp
. Hence your code will be like: