■Overview
This flow is triggered on a specific date to send invoices using billing information managed in a spreadsheet.
■Preparation
・Apply filters in advance on the spreadsheet to identify billing targets. Example of the actual sheet▼
・Prepare a template for the invoice in advance. Example of the actual template▼
https://docs.google.com/spreadsheets/d/1zkxfutABYs6smPd9Ui27vG1_b5481cRu2EN3yfduG-o/edit#gid=0
■Creation Method
① Select a scheduled trigger from the triggers and set it to activate on the specified date.
② Click the + mark under the trigger, select the spreadsheet from "Connect with Apps," and perform the following settings, then test and save.
・Action: Retrieve values
・Spreadsheet ID: Select the spreadsheet ID from the options for the spreadsheet you want to retrieve values from.
・Sheet Name: Select the target sheet from the options. (In this case, select Example 6_2)
・Range: Enter the range of cells you want to retrieve, such as A2:A. (In this case, specify A2:A to retrieve the pre-numbered unique billing ID)
・Direction: Column direction
③ Click the + mark, select the operation to repeat the same process, perform the following settings, and save.
・Operation: Operation from ②
・Output: Retrieved values
※ For settings on repeating the same process, please refer here. https://intercom.help/yoom/ja/articles/6265153
④ Click the + mark in the loop direction, select the spreadsheet from "Operate Database," and perform the following settings.
・Action: Retrieve records
・Spreadsheet ID: Select the spreadsheet ID from the options for the spreadsheet you want to retrieve records from.
・Spreadsheet Tab Name: Select the target sheet from the options. (In this case, select Example 6_2)
・Table Range: Select the range including column names (headers). ex A1:P etc
・Condition for the records you want to retrieve: Select the column corresponding to the unique value obtained in ②, embed the output {{〇〇 loop variable}} obtained in ③, and search with the condition of being equal.
※ For dynamically changing values using output, please refer here. https://intercom.help/yoom/ja/articles/8223528
⑤ Click the + mark, select the spreadsheet from the operation to issue documents, perform the following settings, then test and save.
・Spreadsheet ID: Select the spreadsheet ID used as the invoice template from the options.
・Folder ID to store in Google Drive: Select the folder ID from the options to store after issuing the document.
・File Name: Set an arbitrary file name.
・String to be replaced: Embed the value obtained in ④ for the corresponding string.
※ For the method of setting the operation to issue documents, please refer here. https://intercom.help/yoom/ja/articles/8237765
⑥ Select the operation to send an email, choose any email tool, perform the following settings, and save.
・To: Embed if the address was obtained in ④.
・Subject, Body: Enter each. It is also possible to embed the value obtained in ④.
・Attachment: Select to use output, and choose the issued document as the value.
⑦ Click the + mark, select the spreadsheet from "Operate Database," and perform the following settings.
・Action: Update records
・Spreadsheet ID: Select the spreadsheet ID from the options for the spreadsheet you want to update records in.
・Spreadsheet Tab Name: Select the target sheet from the options. (In this case, select Example 6_1)
・Table Range: Select the range including column names (headers). ex A1:P etc
・Condition for the records you want to update: Select the column corresponding to the unique value obtained in ②, embed the unique value obtained in ④ (in this case, billing ID) as output, and search with the condition of being equal.
・Value to update: Enter a string such as "Sent" in the send flag section.