Google on these forums "email attach pdf site:forums.filemaker.com"
Google on these forums "script to email attach pdf site:forums.filemaker.com"
Links specific to this forum:
scripting save as PDF: PDFs in Containers started to open automatically in Adobe Acrobat: Please Help
The $Path variable described in that thread can be entered as the "attached file" in Send mail to attach the PDF. (Type in the actual name of your $Path variable.)
For more on $Path variables: Exploring the use of a $Path Variable in Scripts
Please don't put 'URGENT' in your posts. This is almost exclusively a volunteer group of people responding to help you. It may be urgent to YOU, but not to the people who may want to help you. It also comes off as a little rude to people reading the title to your post.
Steve, I will politely disagree. Sometimes folks need a fast turn around for their question and there's no harm in saying so in your post's title. We, on the other hand are under no obligation to respond quickly when people say that their need is "urgent".
THANKS Phill you are amazing i have worked it out to send attached file with your example file, works great,
also i have managed to modify the file names which will save as invoice Ref number
and to save in my own choice of folder anywhere in PC i wanted.
and send same Invoice Ref file attached in email to the same persons email with customized subject and Message
Amazing Quick HELP from Amazing Helpers! ! !
Once Again Thanks Alto everyone.
Why i added Urgent ?
@ STEVE MARTINO :Because i needed quick response whoever could give as sending invoices was urgent
but i did not have that feature and been sending manually. . . .which required more time and more tension.
gotchya Phil :). The OP does always thank people, which is nice.
Question: I have Invoice records in portals and each row is as Invoice Layout but my script saves and attaches only first which has been created on that portal but it does not attach 2nd row Invoice which is in the same portal been created. where am i going wrong ? Please help as i am beginner
Are these invoices of one invoice to a page? Or do you just need to attach the data shown in the portal?
different invoice layout invoice page is created and portal records being used as if each time portal row is created then that invoice page shows the exact amounts and everything but it does not attach that page with email but attach the old pdf which was created before as first time
So if you have this relationship:
And you have a portal to invoices on the customer layout.
THen you can use Go to Related Records to pull up the invoices records on an invoices layout. You can then save as PDF with the records being browsed option to save a PDF of all the invoices that were originally listed in the portal.
The layout showing Records from Customer table & Billing records are in portal from Billing Table
as the Invoice layout is mixed showing records from customer table ie Name , Address custom Letter message,
and Billing Portal is in the Invoice Layout which has 1x1 row and is sorted with ascending Date.
Result: In the Invoice Layout shows everything perfect the portal shows correct Ascending row which was created in Billing portal
But when i try to save & send pdf by email thats where it does not save that file neither it attaches that file
But only attaches the first time Portal Created row in email attached pdf file
The reason that I posted what I did last time is that I have no idea what tables and relationships are involved here, so I gave an example based on a typical relationship used for invoicing and then used it to illustrate two ways that might result in what you are reporting: 1) your script may be failing to pull up the correct set of invoice records or 2) you may not be saving as PDF with the "Records Being Browsed" option selected.
You'll need to describe your tables and relationships before I can make any further suggestions.
this is my script if this is correct then i will be posting table and relationships details
or may be the Repetition needs to be changed in the Script ? and that is why its not let it add second portal row