You need to sign in to do that
Don't have an account?
Hanuman
Custom button to generate the PDF and send it as email
Hi all,
When custom button in detail page of custom object is clicked i'm generating the PDF . I want to send the generated PDF as email. Can we do this...?
Can anyone help me over here.
Thanks in advance.
When custom button in detail page of custom object is clicked i'm generating the PDF . I want to send the generated PDF as email. Can we do this...?
Can anyone help me over here.
Thanks in advance.
Use below code.
-- JavaScript --
-- Apex Class Method -- Let me know if this helps :)
Thanks,
Amit Singh
All Answers
Below is Sample code that I have used for the same scenarion. You need to make the modification as per your requirement like VF page name, Class Name, Method Name etc.
Let me know if this helps :)
Thanks,
Amit Singh
Thanks for the quick responce. while trying with above code I'm getting error as below
Error: Compile Error: unexpected token: 'Response_Wrapper' at line 3 column 23.
Can you help me over here.
Can you please let me how to over come the errors and use this to my custom button.
Error: Compile Error: Method does not exist or incorrect signature: void getInv(Id) from the type sendPDFEmailClas at line 4 column 23
And yes the button is on detail page. Below code is the javascript code for button.
{!requireScript("/soap/ajax/16.0/connection.js")}
{!requireScript("/soap/ajax/16.0/apex.js")}
var a = sforce.apex.execute("sendPDFEmailClas","emailPdf",{localId:"{!Application__c.Id}"});
Is anything wrong in my code.
Can you please let me know if did anything wrong.
Use below code.
-- JavaScript --
-- Apex Class Method -- Let me know if this helps :)
Thanks,
Amit Singh
Create a class and then inside that class use the above code as class.
If it possiable could you please provide me full code of this secnario like VF page , apex class.
I got it , thanks,
What is emailPDF in this code?
7 Best Free VPN for Windows In Hindi (https://www.trendsduniya.in/2020/09/best-free-vpn-hindi.html)
Online Sarkari Yojana (https://www.onlinesarkariyojana.in/)
check latest governement news informations and detail of schemes at sarkari yojana news blog (https://sarkariyojnanews.com/) .
Visit : Website designing and digital marketing company India (https://kashidigital.in)
https://www.bigenter.info/one-word-caption/
types of doors (https://civiconcepts.com/blog/25-types-of-doors-for-your-perfect-house)
types of doors (https://civiljungle.com/types-of-doors/)
Great info, thanks for sharing it. Building Estimate (https://bit.ly/3iWox9w)
types of door (
https://www.civilexperiences.com/2021/01/concrete-mix-design-as-per-is-code-easy-way-excel-sheet-download.html)
About 9To5Machinery
The idea of bringing up 9To5Machinery (https://9to5machinery.com/) came to my mind when one of my friends asked me about how to use a Spray Gun. I have always been playing with machinery and thought I could use my knowledge and put it to some use for many people who are clueless or know little about machinery.
Also, a lot of products keep popping up in the market every other day, and to help people choose the best of them is something I wish to do.
Visit : For Latest Online Shopping Deals From Various Ecxommerce Like Amazon Myntra flipkart Go https://slashdeals.in/
Visit : For Latest Online Shopping Deals From Various Ecxommerce Like Amazon Myntra flipkart Go <a href="https://slashdeals.in/buy/amazon-monsoon-appliances-fest-w0PLQ" rel="nofollow ugc">Amazon Monsoon Appliances Fest</a>
One way and Two Way slab (https://www.civillead.com/difference-between-one-way-and-two-way-slab/)
deep foundation (https://definecivil.com/deep-foundation/)
cmu wall (https://definecivil.com/cmu-wall/)
water bound macadam road (https://definecivil.com/water-bound-macadam-road-wbm/)
different types of footing (https://definecivil.com/types-of-footing/)
continous type footing (https://definecivil.com/continuous-footing/)
what is rigid pavement (https://definecivil.com/rigid-pavement/)
different cracks in concrete (https://definecivil.com/types-of-concrete-cracks/)
fdt test (https://definecivil.com/field-density-test/)
gutter cleaning hacks (https://definecivil.com/gutter-cleaning-hacks/)
pros and cons of floating building (https://definecivil.com/pros-and-cons-of-floating-building/)
post tension slabs (https://definecivil.com/post-tension-slabs/)
wall texture types (https://definecivil.com/wall-texture-types/)
free hold property defintion (https://definecivil.com/free-hold-property/)
asphalt concrete definition (https://definecivil.com/asphalt-concrete/)
what is concrete leveling (https://definecivil.com/concrete-leveling/)
flitch beam (https://definecivil.com/flitch-beam/)
p-trap vs s-trap (https://definecivil.com/p-traps-vs-s-traps-whats-the-difference/)
curb and gutter (https://definecivil.com/curbs-and-gutter/)
real estate development process (https://definecivil.com/real-estate-development-process/)
concrete retarders (https://definecivil.com/concrete-retarders/)
how to activiate microsoft office without key (https://latestsinfohub.com/activate-microsoft-office/)
how to split wordpress post into multiple pages (https://latestsinfohub.com/how-to-split-your-wordpress-post-into-multiple-pages/)
how to check fesco bill online (https://latestsinfohub.com/fesco-bill-online-how-to-check-your-bill-save-money-2022/)
ufone loan code (https://latestsinfohub.com/ufone-loan-how-to-take-loan-from-ufone-to-get-mobile-balance-for-emergency/)
pacman 30th anniversary (https://latestsinfohub.com/pacman-30th-anniversary-the-new-google-doodle/)
solitaire cash promo code 2022 (https://latestsinfohub.com/solitaire-cash-promo-code-2021-2022-free-money-complete-guide/)
seal team season 6 release date (https://latestsinfohub.com/seal-team-season-6-release-date-everything-we-know-so-far/)
power season 7 renewed or cancelled? (https://latestsinfohub.com/power-season-7-renewed-or-cancelled-will-there-be-another-series/)
house party walkthrough (https://latestsinfohub.com/house-party-walkthrough-complete-amys-story-walkthrough-guide-tips/)
6 ways to recover website from google may core update (https://latestsinfohub.com/6-ways-to-recover-website-from-a-google-may-core-update-guaranteed/)
what is slayers unleashed trello (https://latestsinfohub.com/what-is-slayers-unleashed-trello/)
jio rockers 2022 telugu movie download (https://latestsinfohub.com/jio-rockers-2022-telugu-movie-download-jiorockers-com/)
dior sauvage dossier co perfume review (https://latestsinfohub.com/dior-sauvage-dossier-co-perfume-review/)
jim wool roblo (https://latestsinfohub.com/jim-wool-roblox-who-is-jimwool/)x
taylordle may (https://latestsinfohub.com/taylordle-may-13-2022-answer-5-13-22-try-hard-guides/)
puzzle type with pictures (https://latestsinfohub.com/puzzle-type-with-pictures-crossword-clue-try-hard-guides/)
passion.io alternatives (https://latestsinfohub.com/passion-io-alternative/)
picuki instagram - is it safe? (https://latestsinfohub.com/picuki-instagram-its-safe-can-do-wonders-heres-how-to-do-it/)
amds new enware area51 (https://latestsinfohub.com/amds-new-enware-area51-threadripper-edition/)
https://www.constructionzip.com/2022/08/importance-of-interior-designs-for-shops.html
https://www.constructionzip.com/2022/08/important-aspects-of-construction.html
https://www.iamcivilengineer.com/2022/08/importance-of-building-contractors.html
https://www.iamcivilengineer.com/2022/08/importance-of-interior-designs-for-hotels.html
https://www.iamcivilengineer.com/2022/08/importance-of-modular-kitchen-at-home.html
https://bestplumbersnear.me/
https://bestplumbersnear.me/how-to-choose-the-best-plumber-for-your-home-remodeling-project/
<a href="https://www.niveeta.com/office-furniture-company.html" rel="dofollow"> Office furniture company in Delhi </a>
Premium Quality Bedroom Furniture and Bed in Dubai and Uae (https://gulflinefurniture.ae/)
Movingoo is IBA Approved Packers and Movers in Margao Goa. Our aim is to provide efficient relocation of safe, fast, reliable, and affordable goods. We offer our services in Margao, Goa to ensure that your belongings arrive safely at their new homes. Movingoo packers and movers in Margao Goa offer a range of packing and moving services including home shifting, office relocation, household shifting, local/domestic moving, car & bike transportation, transport insurance, international relocation, and storage.
https://www.movingoo.in/packers-and-movers-in-margao-goa/
Working Free ChatGPT Plus Accounts (https://www.eonlinetips.com/free-chatgpt-plus-accounts/)
Totally agreed! It's essential to use the provided code within a class as a method, not as a class itself. Organizing the code within a class structure allows for better encapsulation and object-oriented design principles. So, make sure to create a class and incorporate the code snippet into one of its methods.
Bihar Police Constable Syllabus 2023 (https://sarkari-results.in/bihar-police-constable-syllabus-exam-pattern/)