Use Cases
Native Action Use Cases
Get Attachment IDs as a File Use Case
6 min
scenario alex is an analyst who has already set up her gmail account so that her playbook retrieves a list of emails alex now wants to enhance the playbook to retrieve attachment ids as a file first first, alex repeats steps 1 4 from get gmail emails list use case docid\ dwap7exd24dl3kscbufo1 to accomplish getting email attachments in a file, alex needs to use a series of google connector actions however, for best practices, alex is going to use the turbine loop native action to ensure data iterates to receive an array of items, iterate through that array performing action(s) on each item, and reduce the need for configuring a repeated nested playbook action to apply more than one action to each item in an array let's dive in after completing steps 1 4 from get gmail emails list use case docid\ dwap7exd24dl3kscbufo1 , alex follows these steps select an on success action flow, and then add the loop native action alex titles the loop iterate over emails from the action panel, click select property or expression and select playbook property alex clicks the get list emails action and selects the messages property doing this ensures the id array sub property will be passed downstream in the playbook next, add the gmail get email by id action from available assets, select google workspace to apply required credentials under action inputs, enter the user id in the user id field, enter the same user id that you entered in the gmail list emails connector click select a property and click playbook property from the playbook properties, click the iterate over emails loop from the list of properties, alex selects the id string property once she does, the dynamic value displays in the id field under action inputs alex clicks apply to save changes alex is ready to add another loop native action, so she repeats step 1 alex titles the loop get attachments from the action panel, click select property or expression and select playbook property from the playbook properties, click the get email by id action in this case, alex must select the parts array property to get the attachment id property there is now a nested loop in this playbook only a few steps remaining! add an action and select gmail get email attachment and click configure add your user id again add the google workspace asset again in message id, click select a property and click playbook property in attachment id, click select a property and click playbook property from the playbook properties, click the get email attachment action in this case, alex selects the attachment id string property alex clicks apply to save her changes conclusion alex successfully used turbine's google workspace connector, google authentication assets, and loop native actions to automate a playbook to get attachment ids as a file