I think I am getting closer to what I want
I changed to the use of iterator and it turned out to be more like it now.
blueprint (1).json (38.9 KB)
Iterator Settings:
The iterator outputted 5 separate bundles:
I then used a “create google sheet from template” module, with the template looking like this
And let it create a google sheet this way
By running it this way it has created 5 files instead, each for 1 bundle from the iterator. Each looking like this:
[
{
"kind": "drive#file",
"id": "1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M",
"name": "Sample Order - Kitchen Products2024-01-11T10:07:22.213Z",
"mimeType": "application/vnd.google-apps.spreadsheet",
"starred": false,
"trashed": false,
"explicitlyTrashed": false,
"parents": [
"1-Gu-Qu8QAiP7R9hYKUUgAummOC_OnrTd"
],
"spaces": [
"drive"
],
"version": "6",
"webViewLink": "https://docs.google.com/spreadsheets/d/1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M/edit?usp=drivesdk",
"iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.spreadsheet",
"hasThumbnail": true,
"thumbnailLink": "https://lh3.googleusercontent.com/drive-storage/ANtge_Eq7KhiFMwr3TVoHYHY4lXNxlM9kNHvN6LJsvo-p77nIdcErz0wZswrkxi23hxsGuyBU0RbFWZOyg69NRGBRW6Zb4aUmWaeYq0qNg_laJsyKgCs2YraN-WB=s220",
"thumbnailVersion": "1",
"viewedByMe": true,
"viewedByMeTime": "2024-01-11T09:35:11.969Z",
"createdTime": "2024-01-11T10:07:22.262Z",
"modifiedTime": "2024-01-11T10:07:22.262Z",
"modifiedByMeTime": "2024-01-11T10:07:22.262Z",
"modifiedByMe": true,
"owners": [
{
"kind": "drive#user",
"displayName": "Caine Wai",
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKuCr9weOsoZNQEpJ__gdQOTk65xt3IE4R0k5qS-gd3=s64",
"me": true,
"permissionId": "12459289486432848484",
"emailAddress": "cevatech.hk@gmail.com"
}
],
"lastModifyingUser": {
"kind": "drive#user",
"displayName": "Caine Wai",
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKuCr9weOsoZNQEpJ__gdQOTk65xt3IE4R0k5qS-gd3=s64",
"me": true,
"permissionId": "12459289486432848484",
"emailAddress": "cevatech.hk@gmail.com"
},
"shared": false,
"ownedByMe": true,
"capabilities": {
"canAcceptOwnership": false,
"canAddChildren": false,
"canAddMyDriveParent": false,
"canChangeCopyRequiresWriterPermission": true,
"canChangeSecurityUpdateEnabled": false,
"canChangeViewersCanCopyContent": true,
"canComment": true,
"canCopy": true,
"canDelete": true,
"canDownload": true,
"canEdit": true,
"canListChildren": false,
"canModifyContent": true,
"canModifyContentRestriction": true,
"canModifyEditorContentRestriction": true,
"canModifyOwnerContentRestriction": true,
"canModifyLabels": false,
"canMoveChildrenWithinDrive": false,
"canMoveItemIntoTeamDrive": true,
"canMoveItemOutOfDrive": true,
"canMoveItemWithinDrive": true,
"canReadLabels": false,
"canReadRevisions": true,
"canRemoveChildren": false,
"canRemoveContentRestriction": false,
"canRemoveMyDriveParent": true,
"canRename": true,
"canShare": true,
"canTrash": true,
"canUntrash": true
},
"viewersCanCopyContent": true,
"copyRequiresWriterPermission": false,
"writersCanShare": true,
"permissions": [
{
"kind": "drive#permission",
"id": "12459289486432848484",
"type": "user",
"emailAddress": "cevatech.hk@gmail.com",
"role": "owner",
"displayName": "Caine Wai",
"photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKuCr9weOsoZNQEpJ__gdQOTk65xt3IE4R0k5qS-gd3=s64",
"deleted": false,
"pendingOwner": false
}
],
"permissionIds": [
"12459289486432848484"
],
"size": "1024",
"quotaBytesUsed": "1024",
"isAppAuthorized": true,
"exportLinks": {
"application/x-vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=ods",
"text/tab-separated-values": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=tsv",
"application/pdf": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=pdf",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=xlsx",
"text/csv": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=csv",
"application/zip": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=zip",
"application/vnd.oasis.opendocument.spreadsheet": "https://docs.google.com/spreadsheets/export?id=1Lrbs9a4JJ5BGV6_TUP3urcX12Rmwm7o7tEoNX7UPJ0M&exportFormat=ods"
},
"linkShareMetadata": {
"securityUpdateEligible": false,
"securityUpdateEnabled": true
}
}
]
The only thing missing now is that instead of 5 separate files, I would like to have all the 5 bundles in 1 file as new rows. I can see that the values took up the cells where the tags are specified. How can I put them underneath one row after another? I know this has something to do with “add row” module, but when specifying the file name I am a bit stuck on what to do because the file should be a variable each time the scenario is run? How can I manage this?
And then the last thing is to send out this created file via email. Since it is a google sheet can it be sent as a file? Or should be it a link?
The recipient (warehouse) is supposed to look at it, make deliveries and update the tracking number on the right most column.
I definitely underestimated the complexity of this flow, but its very satisfying to be able to make progress.
Thanks again!