Ideally, I would like a script that would load the ‘Default’ workspace, and select the ‘inbox’ or the ‘flagged’ tab (based on a conditional statement).
I can’t work out how to load the ‘Default’ workspace, so I have created a ‘Drafts’ workspace, which I can apply like this:
let workspace = Workspace.find(“Drafts”);
However, I don’t know how to load the ‘Inbox’ tab, or the ‘Flagged’ tab. Does anyone know? I want to load different tabs depending on the action.