I'm trying to get the role names associated with the folder but I'm not getting hold of it. Here is what I have tried:
Select Id, Name, isActive, Folder.Name from EmailTemplate where Folder.Name = 'test'
I have tried adding
UserRole.Name or Profile.Name but none of this works and if this is not possible is there a way to retrieve through metadata api using workbench?
I'm trying to get the selected values that users have selected in
Shared To o the right hand box in the image.