Тёмный

How to Generate and Store file in Salesforce Using Apex (Content Version & Document) ? - Salesforce 

Shubham Lashkan
Подписаться 1,2 тыс.
Просмотров 9 тыс.
50% 1

In this video we will learn about Content Version & Content Document and how can we generate and store files inside salesforce
Like | Share | Subscribe | Spread Knowledge
________________________________________________________________________
Follow Me:
Facebook: / shubham.lashkan
Instagram: / shubhamlashkan
Twitter: / shubhamlashkan
#ShubhamLashkan #Salesforce #Apex #Trailhead #CRM #ApexDevelopment #salesforcehulk #salesforcedeveloper #salesforcedevelopment #howto
#contentverison #contentdocument #salesforcetraining #salesforcetutorials

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@rajatmehta114
@rajatmehta114 2 года назад
How to generate a pdf file in Files instead of Notes and Attachments??
@ShubhamLashkan
@ShubhamLashkan 2 года назад
When we create any pdf and link it to any object record like in the video i am linking to contact record then it automatically gets displayed on the files object
@rajatmehta114
@rajatmehta114 2 года назад
So it will be displayed in both notes and attachment as well as file?
@ShubhamLashkan
@ShubhamLashkan 2 года назад
Yes it will displayed on related Notes and attachments and on Files as well 👍
@rajatmehta114
@rajatmehta114 2 года назад
@@ShubhamLashkan Thanks!! It worked, do you know how can i update the pdf, like if I update the record, then only 1 pdf should be there and latest records should be appended in the same file.
@ShubhamLashkan
@ShubhamLashkan 2 года назад
Have to think about it. I will upload a video for sure in future 👍
@user-cc8uw3gx8v
@user-cc8uw3gx8v 5 месяцев назад
Your method of explaining the through developer guide is great. Thanks for making video.
@ShubhamLashkan
@ShubhamLashkan 5 месяцев назад
Thank you for appreciation 🙏 Please consider subscribing and share with community 🙏
@anandhikandasamy3330
@anandhikandasamy3330 2 года назад
Nice video! Really helpful for me to understand how the three objects are related. Thanks!
@ShubhamLashkan
@ShubhamLashkan 2 года назад
Glad to know that it helped👍
@rakshitrawat581
@rakshitrawat581 10 месяцев назад
sir your explaination is so good
@ShubhamLashkan
@ShubhamLashkan 10 месяцев назад
Thank You 🙏 Consider subscribing and sharing with your friends 🙏
@nabinayasmin6102
@nabinayasmin6102 2 года назад
It was very helpful.
@ShubhamLashkan
@ShubhamLashkan 2 года назад
Glad it helped you understand the relationship between them 👍
@subhrangshubanerjee9442
@subhrangshubanerjee9442 Месяц назад
Thanks for your nice video . Can we create same as an image file with .png extension? I created an image file but during opening the file it is showing as "It appears that we do not support this file format".
@ShubhamLashkan
@ShubhamLashkan Месяц назад
Will try to do this and let you know. Please share the code which you wrote
@subhrangshubanerjee9442
@subhrangshubanerjee9442 Месяц назад
@@ShubhamLashkan Thanks for ur quick reply. Actually I was trying to save an htmlBody of emailmessage object into a pdf file so that user can use it later. It worked fine for few email messages but did not work for other few. I observed when an htmlBody contains an image which has src='', it is thowing error, I removed imamge tag dynamiccaly in apex code which has src='' , it worked fine for that email message but did not work for all as html message may have different content. Did not find tha actual reason. I decided to save htmlBody into image but get error as below during opening the file it is showing as "It appears that we do not support this file format". ContentVersion cv = new ContentVersion(); cv.Title = email.Subject; // dynamic cv.PathOnClient = email.Subject + '.png'; // dynamic cv.ContentLocation = 'S'; cv.VersionData = Blob.valueOf(strHtmlBody); // strHtmlBody is htmlBody of emailMessage object insert cv;
@subhrangshubanerjee9442
@subhrangshubanerjee9442 Месяц назад
@@ShubhamLashkan Thanks for your quick reply. Actually I was trying to save an htmlBody of emailmessage object into a pdf file so that user can use it later. It worked fine for few email messages but did not work for other few. I observed when an htmlBody contains an image which has src='', it is thowing error, I removed imamge tag dynamiccaly in apex code which has src='' , it worked fine for that email message but did not work for all as html message may have different content. Did not find tha actual reason. I decided to save htmlBody into image but get error as below during opening the file it is showing as "It appears that we do not support this file format". ContentVersion cv = new ContentVersion(); cv.Title = email.Subject; // dynamic cv.PathOnClient = email.Subject + '.png'; // dynamic cv.ContentLocation = 'S'; cv.VersionData = Blob.valueOf(strHtmlBody); // strHtmlBody is htmlBody of emailMessage object insert cv;
@nabinayasmin6102
@nabinayasmin6102 2 года назад
Can you make one video about how to make lwc component works in multiple language..
@ShubhamLashkan
@ShubhamLashkan 2 года назад
I haven't yet learned LWC for now but might be in future. But thank you for suggesting the topic 👍
@AkudikeChijioke-ht8ws
@AkudikeChijioke-ht8ws Год назад
Adorable 💕
@ShubhamLashkan
@ShubhamLashkan Год назад
Glad it helped 👍
@user-tk6cs6zn2m
@user-tk6cs6zn2m Год назад
@shubhamLashkan So if i get Quote template from Quote template object to Opportunity Object? Can i able to download that from opportunity object?
@ShubhamLashkan
@ShubhamLashkan Год назад
Sorry i didn't get your question. Can you please elaborate.
@rognt-qx9hi
@rognt-qx9hi Год назад
I have used visual force page to generate pdf by button click pdf is generated now what ever generated pdf should attach to related record can we do that
@ShubhamLashkan
@ShubhamLashkan Год назад
In this video i am relating the PDF to the record.
@rohantarale8251
@rohantarale8251 Год назад
what if there is file already stored in attachment/files and I want that file to be attach in the email, is it possible to do...???
@ShubhamLashkan
@ShubhamLashkan Год назад
Yes it is possible 👍
@rohantarale8251
@rohantarale8251 Год назад
@@ShubhamLashkan can u tell me how it can be done...??
@TamilSelvan-vy3lm
@TamilSelvan-vy3lm Год назад
how to add image as files in base64
@ShubhamLashkan
@ShubhamLashkan Год назад
Have to search about that.
Далее
Content Documents and its related Objects in Salesforce
47:49
Cristiano Ronaldo Surpassed Me! #shorts
00:17
Просмотров 12 млн
MILLION JAMOASI 2024 4K
2:17:51
Просмотров 13 млн
What is Content Document, Content Document Link
10:49
How To Make File Upload Mandatory in Salesforce Flow
6:53
Overcome Salesforce Governor Limits Using Platform Events
1:32:18
Create Salesforce Files using REST API
9:08
Просмотров 1,7 тыс.
Cristiano Ronaldo Surpassed Me! #shorts
00:17
Просмотров 12 млн