+ 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/)