function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anthony Wheeler 1Anthony Wheeler 1 

ContentNote inserts before User hits Save

I'm wondering if this is just a glitch in Salesforce and if anyone has any workaround. I currently have a Trigger on ContentDocumentLink that sends an email to the owner of a custom object record when a File or Note is created and attached to that record. The trigger also attaches file information and the body of the Note if it's a ContentNote being inserted. The trigger handles the logic in differentiating Notes from other file types. The problem is when the user hits the button to create a new Note in classic or in the Console, an empty, untitled, new note record is inserted instantly firing my trigger before the user has time to add content to the body. In Lightning it at least allows the user to fill out the header of the note before saving, but saves before the note body is filled out. Cancelling out of creating the note still leaves the blank note saved and attached to the record. Any help in understanding why the note saves before the user hits the save button would be appreciated.
Best Answer chosen by Anthony Wheeler 1
Ryan GreeneRyan Greene
This is an annoying way SF setup the Content Notes. It does save every secord or so after the user starts typing. The only way I could figure out how to overcome this issue is to run batch Apex, but then you loose the real time notifications. Might need to try hooking it up Chatter somehow.

All Answers

Ryan GreeneRyan Greene
This is an annoying way SF setup the Content Notes. It does save every secord or so after the user starts typing. The only way I could figure out how to overcome this issue is to run batch Apex, but then you loose the real time notifications. Might need to try hooking it up Chatter somehow.
This was selected as the best answer
Anthony Wheeler 1Anthony Wheeler 1
Gotcha. Thanks for the information. I'll experiment a bit.
Brandon NelsonBrandon Nelson
I know this is now over a year later, but did you find any way around this? Running into this issue now with my APEX and I don't know how to work around it. Either my title or Conent is blank because it inserts before I'm done.
Hin ChHin Ch
Excellent Work, It is a nice Article. It was very helpful for me. Thanks Keep it Up (https://livecricketweb.com)
 
Hin ChHin Ch
Excellent Work, It is a nice Article. It was very helpful for me. Thanks Keep it Up (https://livecricketweb.com)
 
Ryan GreeneRyan Greene
Wow!!! Click bait to a cricket website!! Best answer ever, thank you so much for your input!
Himanshu Kumar 42Himanshu Kumar 42
Are You Looking For Latest Kinemaster Mod Apk (https://modmoon.com/kinemaster-mod-apk/)? You are In The Right Place. Kinemaster Mod is a Fully Unlocked Video Editor App for Android. KineMaster Mod V4 Apk for Android with all features unlocked and Without Watermark. KineMaster is a full-featured video editor for Android. KineMaster has powerful tools that are easy to use, like multiple video layers, blending modes, voiceovers, chroma-key, speed control, transitions, subtitles, special effects, and so much more!
Himanshu Kumar 42Himanshu Kumar 42
Download filmora go pro apk (https://huppme.online/filmora-go-pro-mod-apk/) mod.This Software is Designed by the wondershare. In This Post, you Can Easily Download Filmorago Pro Mod apk (Without Watermark). This is the best video editing application you can render your video in 1080p.
Carte MiaCarte Mia
Great work. Keep it up!
https://bleachmobilecrystals.com/
https://pes20mobilecoins.com/
https://codmobilepoints.com/
https://callofdutymobiletriche.fr/
Ali Ali 28Ali Ali 28
Because of limited resources, it does not count as DML.
Download Ludo star apk https://theludoapks.com/ to play game on cell phones
Tabbasum NihanTabbasum Nihan
Great work. Keep it up!
Jackson BirdJackson Bird
This is an annoying way SF setup the Content Notes. It does save every secord or so after the user starts typing. The only way I could figure out how to overcome this issue is to run batch Apex, but then you loose the real time notifications. Might need to try hooking it up Chatter somehow.
I am sports journalist. I write about sports especially about cricket. Like the upcoming cricket series, tournaments, T20 Cricket (https://cricketdugout.com/) happening any where in the world. 

 
lis nannylis nanny
Thank you for sharing such an interesting post. If anyone is looking for a Nanny Institute in Patiala (https://lisnanny.com/nanny-coaching-course-institute-in-patiala/), then contact Lis Nanny Institute in Patiala.
Rahul garg 73Rahul garg 73
This was a well-written blog. The admin has really shared very useful content in a clear way. Thanks for sharing.
http://avmmasterminds.com/
 
Rahul garg 73Rahul garg 73
Thanks for sharing. I found a lot of interesting information here. 
http://mytodayrecipe.com/kolhapuri-chicken-recipe/
https://kitchenfactory.in/best-juicer-in-india  (https://kitchenfactory.in/best-juicer-in-india)


 
Hin ChHin Ch
Dear !!!! Nice information, thanks for sharing great content……   
https://packagespoint.com

 
Hin ChHin Ch
Thanks for sharing such an interesting post. 
https://indwebinfo.in
Rahul Sahani 6Rahul Sahani 6
This is an annoying way SF setup the Content Notes. It does save every second or so after the user starts typing. The only way I could figure out how to overcome this issue is to run batch Apex, but then you lose the real-time notifications. Might need to try hooking it up Chatter somehow.
https://www.beingwp.com/genesis-themes-for-wordpres/
Rahul Sahani 6Rahul Sahani 6
<a href="https://www.beingwp.com/">beingwp</a>
rajat sharma 149rajat sharma 149
This was an well written blog. The admin has really shared a very useful content in a clear way. Thanks for sharing.
Download Hotspot Shield Premium VPN APK for Free on Android 2019  Hotspot Shield Premium (https://hotspotshieldpremium.com/)
Rohit TantiRohit Tanti
Nice info also check indian army status (https://newstatus.in/indian-army-status-2020/
Carl johnson 18Carl johnson 18
Latest GTA 4 cheats https://www.gtacheatcode.com/2019/11/gta-4-cheats-code.html. This cheats for all gaming devices like – PC, Xbox, and PlayStation
Hin ChHin Ch
Dear !!!!!! Nice Details, thanks for sharing helpful content…… 
https://indwebinfo.in
 
Hin ChHin Ch
Dear !!!!!! Nice Details, thanks for sharing helpful content……
https://indwebinfo.in
Rakesh Mhetre 7Rakesh Mhetre 7
Rakesh Mhetre 7Rakesh Mhetre 7
Nice post buddy Technoenhance (https://technoenhance.com)
Kings FirmwareKings Firmware
Kings Firmware (https://www.kingsfirmware.com/)
Best online website where to download free Android Smart-phones, Tablets official Stock ROM, Repair Flash File, Combination File ROM, ENG Root.
Mukesh Singh 70Mukesh Singh 70
Thanx for sharing 
Call of Duty Mobile Generator (https://codmobilehacks.club)
Anthony SchneiderAnthony Schneider
Thank you for sharing the fix.
Download Instagram Video (https://www.onlineresizeimage.com/download-instagram-video/)
Download Instagram Photos (https://www.onlineresizeimage.com/download-instagram-photos/)
NATHAN KARLNATHAN KARL
customer plan individuals to fill their upkeep remedies through mail request conveyance or at a CVS Pharmacy retail location at a similar cost 
https://myhrcvs.home.blog/2019/12/15/strength-medication-storage-and-disposal/
Rajmin AcademyRajmin Academy
This was a well-written blog. The admin has really shared very useful content in a clear way. Thanks for sharing.
midbrain activation (https://www.midbrainacademy.in/midbrain-activation.html)
Photographic Memory Programme (https://www.midbrainacademy.in/Photographic-Memory-Programme.html)
Abacus (https://www.midbrainacademy.in/Abacus.html)
Quantum Speed Reading (https://www.midbrainacademy.in/Quantum-Speed-Reading.html)
rajat sharma 149rajat sharma 149
Wow! You certainly included everything with your post. I would like to read more from you. Do you write for any more blogs?
hotspot-shield premium (https://hotspotshieldpremium.com/)
 
Kairy KaliaKairy Kalia
Listen all your favorite songs on Spotify premium apk (https://www.spotifyplus.com/
alex NA 5alex NA 5
lis nannylis nanny
Thanks for sharing. I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.
Midbrain activation (https://www.midbrainacademy.in/midbrain-activation.html)
Photographic memory programme (https://www.midbrainacademy.in/Photographic-Memory-Programme.html)
abacus (https://www.midbrainacademy.in/Abacus.html)
quantum speed reading (https://www.midbrainacademy.in/Quantum-Speed-Reading.html)
Ana DenesikAna Denesik
Thanks for sharing.
https://apkgreat.com/clash-of-clans-mod-apk/
Apps StatusApps Status
https://appsapkbox.com
https://showboxinfo.com
https://whatsappstatus.vip
Mark bin 7Mark bin 7
Wow Amazing App You Must try this app you will love it QuickShortcutMaker APK (https://androidapk-store.com/2020/03/01/quickshortcutmaker-apk/)
alex NA 5alex NA 5
thank you, for this great information. website https://plusfreeaccount.xyz/

 
myindia jobsmyindia jobs
Such a great article very informative.....keep posting like that..love you!! (https://www.myindiajobs.in/)
Charlis RominaCharlis Romina
for more information website given below
https://lotterysambadold.in/
review crocreview croc
this was amazing i am founding the solution and get here thanks for this discussion and quality question and answers buy app reviews (https://www.reviewcroc.com) is my new blog i am facing issue some kind of dev work now its work fine
Aman MansuriAman Mansuri
I am following this blog since 2 month really like your content 
Whatsapp Video Status more then 1000+ Sad,Love, (https://cinematicstatus.com/)and many 
Check now one click download (https://cinematicstatus.com/)
Rajat Tyagi 13Rajat Tyagi 13
Amazing blog and nice helpful content. bharat result (https://newgovjobs.in/)
Eddie JosephEddie Joseph
I am so happy that I came to this forum. Amazing Content Keep it up (https://www.shayaripadho.com/)
HELO STATUSHELO STATUS
This was an well written blog (https://helostatus.com/whatsapp-dp-images/). The admin has really shared a very useful content in a clear way. Thanks for sharing.
Download Hotspot Shield Premium VPN APK for Free on Android 2019  Hotspot Shield Premium -VISIT (https://helostatus.com/indian-army-status/)
HELO STATUSHELO STATUS
this was amazing i am founding the solution and get here thanks for this discussion and quality question and answers buy app reviews (carryminati (https://techgohindi.com/carryminati/) is my new blog i am facing issue some kind of dev work now its work fine my site (https://techgohindi.com/)
Ubaid KhaliqUbaid Khaliq
fully informative SamFirm   (http://samfirms.com/)             
Easy Firmware (http://easyfirmwarex.com/)
Ubaid KhaliqUbaid Khaliq
Samsung firmware download  (http://samfirms.com/" target="_blank)
alex NA 5alex NA 5
thank you, for this great information. website https://cju98.csb.app/
nuwan pathumnuwan pathum
Good conversation dear, I learned a lot of things; incredibox apk
handydroids.com (https://www.handydroids.com/)
apkvote.com (https://www.apkvote.com/)
Tanu Singh 6Tanu Singh 6
Thanks for sharing this article !  Visit Website  (https://buyrealbags.com/)


 
Tanu Singh 6Tanu Singh 6
Nice blog post if you are looking for best reviews on all luggage brands then must read Best wallets for men India  (https://buyrealbags.com/best-wallets-for-men-india/)
and if you want to buy perfect trolley bag for yourself then must read Best trolley bags in India  (https://buyrealbags.com/best-trolley-bags-in-india/)
If you want to buy school bags at low prices then must read Best bags under 500 (https://buyrealbags.com/bags-under-500/)
Tanu Singh 6Tanu Singh 6
One of the best blog post i have seen ! Must view Best rucksacks  (https://buyrealbags.com/best-rucksacks/)
lis nannylis nanny
Thanks for sharing. I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.
Midbrain activation (https://midbrainacademy.in/courses/midbrain-activation/)
Abacus Franchise (https://www.midbrainacademy.in/courses/abacus-franchise)
Nlp Training (https://midbrainacademy.in/courses/nlp-training/)
Patrick Brown 42Patrick Brown 42
Enjoy free and premium games from the links below. If you are a Pubg Lover Then you must know the best PUBG Names  (#) and PUBG mod APk (#)
https://techhube.com/pubg-names/
https://techhube.com/pubg-mobile-mod-apk/
https://techhube.com/
 
Kayise ReyesKayise Reyes
Get some guidelines on raising livestock for profit (https://guidetoprofitablelivestock.com).
Megha HegdeMegha Hegde
Great article!! thank you so much for this wonderful content!!
visit once:Dead target mod apk  (https://ultra-gamers.com/dead-target-mod-apk/), Shadow fight 2 special edition mod apk (https://ultra-gamers.com/shadow-fight-2-special-edition-mod-apk/)
Ubaid KhaliqUbaid Khaliq
Best and always updated Samsung Official latest Firmware download from SamFirm (http://samfirms.com)
Abdul Kareem 20Abdul Kareem 20
Great article!! thank you so much for this wonderful content!
PUBG Names: stylish PUBG & BGMI Names For Boys & Girls (https://www.techpk.co/2021/08/cool-pubg-names-for-boys-girls.html)
Abdul Kareem 20Abdul Kareem 20
This is a good research:
how to (http://www.howto360.net)
Bonnie JesBonnie Jes
You must try game guardian apk (https://thetechbytes.net/game-guardian-apk/) on your android smartphone. Also try spotify++ (https://thetechbytes.net/spotify-plus-plus/) app and youtube premium apk (https://thetechbytes.net/youtube-premium-apk/). Pokemon go mod apk (https://thetechbytes.net/pokemon-go-mod-apk/) is most favourite game all time. Just try exe to apk (https://thetechbytes.net/exe-to-apk/) on your smart device.
Kendan SanchezKendan Sanchez
Thank you for the information! It was really helpful for me (https://most-bet.az/)
Samuel SmallSamuel Small
Arti Singh 16Arti Singh 16
If you want to get any information related to the government scheme, then you can take jake from PMY.CO. (https://pmy.co.in/)IN the website, in this, you will get information related to the scheme or the pm of India.

E Aadhar Card Download (https://pmy.co.in/governments/e-aadhar-card-download-pdf/)

PM Kisan Beneficiary Status Check (https://pmy.co.in/pm-yojana/pm-kisan-status-check/)
Arti Singh 16Arti Singh 16
Download your favorite game for free and get unlimited money free by checking the comment Mario Kart Tour MOD APK (https://onedunow.com/mario-kart-tour/)
lorena namilorena nami
It is a perfect solution for scanning films and slides. It supports different image formats such as JPEG, TIFF, RAW, and more. Moreover, This tool offers you color correction and infrared dust removal tools. In this way, it helps you to scan your images as well as enhance their beauty VueScan Pro Crack (https://ijicrack.com/vuescan-pro-crack/)
lorena nami 10lorena nami 10
The user-friendly interface simplifies tax preparation and filing taxes. Taxpayers who own investment or rental properties can use them. All in all, it is the most popular version, to optimize their earnings through standard deductions and tax credits (https://crackskit.com/turbotax-crack-torrent/)
lorena nami 10lorena nami 10
If you are looking for the free tools here you can get them all  (https://crackkits.com/pdfelement-crack/)
tech clickytech clicky
If you are the spoify lover, you need to also try the spotify++ ipa (https://techclicky.com/spotify-plus-plus/) app. That was one of the best app on iPhone. You need to also check with the Unblocked games 66 (https://techclicky.com/unblocked-games-66/) this article game on your school system. These games are most rare ones. Also check the Youtube Error Youre Offline Check Your Connection (https://techclicky.com/youtube-error-youre-offine-check-your-connection/) problem and Hulu error code rununk13 (https://techclicky.com/hulu-error-code-rununk13/). You can easily fix this problem using these article. If you have an Crunchyroll application and have an problem, try the How to fix Crunchyroll black screen (https://techclicky.com/how-to-fix-crunchyroll-black-screen/). This is the best solution for that application problem. You need to also check with the roblox fps unlocker (https://techclicky.com/roblox-fps-unlocker/) and exe to apk (https://techclicky.com/exe-to-apk/) converter.
Paul AmosPaul Amos
Thanks for the nice blog. https://mindfulhealth.pro/
tech clickytech clicky
Just to try the Lost treasure 2 mod apk (https://bit.ly/3KG9Y5Z) on your android smartphone. And also try the FRP bypass apk (https://bit.ly/40byMZo) and Fire kirin apk (https://bit.ly/3MMEaPv) these games on your smartphone. Must checkout the Unblocked games 66 ez (https://bit.ly/3A4wmRQ)
Zyen MalikZyen Malik
Thanks for this tips keep share with us, I relly appriceat your work sir. 
Best Regard: VancedApp.Net (https://vancedapp.net/)