Hi, I am trying to save getmyinvoice pdf to airtable using make, but the getMyInvoice option in make is not returning the PDF URL, and I cannot convert the file content and save it as a document. What is the solution here? Please help
Hello @Naseer_Alam, you can export the pdf and map it directly
Welcome to the Make community!
Try using the GetMyInvoices âGet a Documentâ module:
Get one document from the account.
For more information, see GetMyInvoices page in the Make Help Centre, which covers the following:
- Connect GetMyInvoices to Make
- Build GetMyInvoices Scenarios
Youâll have to first upload the pdf to a service that provides you with a direct URL to the pdf.
Examples of such services include Google Drive, Dropbox, and OneDrive.
You can also use Amazon S3, Google Cloud Storage, etc. You can find more file hosting integrations here: https://www.make.com/en/integrations/category/storage.
Hope this helps! Let me know if there are any further questions or issues.
â @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Hi @samliew , thank you for the response. I donât want to use any third-party of save the invoices and I want the process to be automated. So everytime an invoice is uploaded to getMyInvoice I want to save it to Airtable using Make. The issue is that the get a document trigger doesnât have a direct URL I can use
According to the official GetMyInvoice API documentation, it is not possible to get a fileâs URL.
You will have to download, and upload to a file hosting service if you want a URL, therefore, my above answer is the way to do it.
Iâm sure others would agree that this is a nice feature to have. You can submit this suggestion to GetMyInvoice support.
Hope this helps! Let me know if there are any further questions or issues.
â @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Hi @samliew, thank you. Using GetMyInvoice is a neccessity for me. The Get a single document returns the file content. Is there a way I can extract the pdf from that field?
How does the output bundle look like? I donât use GetMyInvoice.
If you need further assistance, please provide the following:
1. Relevant Screenshots
Could you please share screenshots of your scenario? Also include screenshots of any error messages, module configuration fields, and any filter settings. We need to see what youâre working with to give you the best advice.
You can upload images here using the Upload icon in the text editor:
2. Scenario Blueprint
Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!
To export your scenario blueprint, click the three dots at the bottom of the editor then choose âExport Blueprintâ.
You can upload the file here by clicking on this button:
3. Output Bundles of Modules
Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).
Click on the white speech bubbles on the top-right of each module and select âDownload input/output bundlesâ.
A. Upload as a Text File
Save each bundle contents in a plain text editor (without formatting) as a bundle.txt
file.
You can upload the file here by clicking on this button:
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it wonât be modified by the forum:
-
Method 1: Type code block manually
Add three backticks
```
before and after the content/bundle, like this:```
content goes here
``` -
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.
Sharing these details will make it easier for others to assist you.
4. Post in the Hire a Pro category
If you need fast assistance, please use the Hire a Pro category, where you can receive private 1-to-1 assistance via video call/screenshare/private messaging/etc. This may help you get your issue resolved faster especially if it is urgent, or contain sensitive information. It is important to post your request in the Hire a Pro category, as forum members are not allowed to advertise their services in other categories like here (even if itâs free/unpaid). Once you have posted in the Hire a Pro category, that will allow other members to assist you over other forms of communication.
Hi @samliew,
here are some screenshots of the setup and the output from getmyinvoice âget a single documentâ trigger.
That looks like Base64 encoded content.
You can use the built-in function toBinary
e.g.:
{{toBinary(3.fileContent; "base64")}}
and if you are expecting plain text (not PDF), you can use toString
{{toString(toBinary(3.readableContent; "base64"))}}
For more information, see the function documentation in the Help Center and do the tutorials in the Make Academy.
Hope this helps! Let me know if there are any further questions or issues.
â @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
Thanks for returning to this topic and marking this thread as resolved. Please begin a new topic if you require further assistance. You can also try perusing the AI RAG chatbot that I trained with 10,000+ of my Make forum posts, for targeted context awareness of the Make platform.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too â
Getting Started
- Help Centre | Tutorials â Make âManualâ
- Make Academy â Basics 101: Learn Make and get certified
Help Centre Basics
- Mapping â What is mapping? What can I map?
- Mapping with arrays â How to map items in an array
- Aggregate an array for mapping complex fields
- Date Format: tokens for
parseDate
| tokens forformatDate
- HTTP modules â Make a request, Get (download) a file
- Webhooks â Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI - How to setup and use OpenAI (ChatGPT) in Make
- How to use Regex in Make - How to use pattern matching to extract the text you want
- Webhooks â Make Academy â tutorial on how to use Webhooks
Hope this helps!
â @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.