Delivered McLeod load's documents copied to its Google Drive folder
When a load is delivered in McLeod, this flow copies its rate con, BOL, POD and other documents from McLeod Imaging into the load's folder in Google Drive.
The prompt
When a load is marked delivered in McLeod, list the documents McLeod Imaging holds for it, including the ones on its movements. Find the folder named after the load number inside our Loads folder in Google Drive and create it if it isn't there. Copy each document into it as a PDF named with the load number and the document type, and skip any that are already in the folder, including ones filed from email under the same type.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: For each new document
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Load delivered in McLeod Checks McLeod every 15 minutes for loads that moved to Delivered.
- List the load's documents Lists the rate con, BOL, POD and other documents McLeod Imaging holds for the load and its movements. A load with none ends here.
- Find the load folder Looks inside your Loads folder in Google Drive for the folder named exactly after the load number.
- Create the load folder When the load has no folder yet, it's created inside the Loads folder.
- List what's already filed Lists the files already in the load folder, so a document copied before is skipped, and so is one the emailed paperwork flow already filed under the same type, such as 0451873 POD.pdf.
- Download it from McLeod Downloads each new document from McLeod Imaging as a PDF.
- Copy it to the load folder Uploads it to the load folder, named with the load number, the document type and its McLeod document ID.
Before you turn it on
- Enter your McLeod server address with an API token or a user name and password, and connect your Google Drive account. The delivered check needs table auditing on orders turned on in McLeod.
- Set the flow setting Loads folder to the ID of the Google Drive folder that holds your load folders (the part of the folder's link after /folders/). Use the same folder as the emailed paperwork flow, so both file into one folder per load.