-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Feature Request
It would be cool to be able to query https://contacts.google.com (Contracts, Directory, Other contacts)
I would love to prompt "what is the last e-mail my boss sent me?"
Potential ways to solution
I'm somewhat familiar with workspace APIs. Firstly, I can get my boss's email via (apps script):
function getUserManager() {
var userEmail = '{{ USEREMAIL }}';
try {
var user = AdminDirectory.Users.get(userEmail, {viewType: 'domain_public'});
var manager = user.relations?.find(r => r.type === 'manager')?.value || 'Not Found';
Logger.log('Manager: ' + manager);
} catch (e) {
Logger.log('Error: ' + e.message);
}
}
I imagine that value could be parsed to the e-mail query tool *from: {{ MANAGEREMAIL }}
Metadata
Metadata
Assignees
Labels
No labels