Tuesday, November 19, 2019

How to Convert Salesforce Classic Notes into Lightning Notes

As now everyone is migrating to Lightning, Salesforce supports lightning Notes(ContentNote) instead of Classic Notes. So while migrating to lightning, we have to convert all classic Notes to lightning Notes. Salesforce provide an appexchange app called magic mover for this purpose.

If you don't want to install this app and would like to perform this conversion, then you can do it with very simple apex script.

If you want to understand How to Convert Salesforce Attachments into Salesforce Files then refer below URL:

Convert Salesforce Attachments into Salesforce Files


I have created a batch class which will convert all Notes related to object (based on query that you pass) to ContentNote and you will receive an email with all details once batch job is completed.

Suppose you want to convert all the notes related to Account to Lightning Notes, then use below script in execute anonymous in developer console.

string qstring='Select id from Account';
SK_ConvertNotesForLightningBatch newjob= new SK_ConvertNotesForLightningBatch(qstring);
database.executeBatch(newjob);

Below is snapshot of csv file which you receive after this batch job completed.

Hope this will help!!

20 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This is an amazing blog, thank you so much for sharing such valuable information with us.
    Visit for best website design and SEO services at- Website Development Company in India
    best website design services in gurgaon
    web company in delhi
    web desiging company
    web design & development banner
    web design & development company
    web design & development services
    web design agency delhi
    web design agency in delhi
    web design and development services
    web design companies in delhi
    web design company delhi
    web design company in delhi
    web design company in gurgaon
    web design company in noida
    web design company list
    web design company services
    web design company website
    web design delhi
    web design development company
    web design development services
    web design in delhi
    web design service
    web design services company
    web design services in delhi
    web designer company
    web designer delhi
    web designer in delhi
    web designers delhi
    web designers in delhi
    web designing & development
    web designing advertisement
    web designing and development
    web designing and development company
    web designing and development services
    web designing companies in delhi
    web designing company delhi
    web designing company in delhi
    web designing company in gurgaon
    web designing company in new delhi
    web designing company in noida
    web designing company logo
    web designing company sites
    web designing company websites
    web designing delhi
    web designing in delhi
    web designing in gurgaon
    web designing in gurgaon
    web designing service
    web designing services
    web designing services delhi

    ReplyDelete
  3. Hello there! Thanks so much for contributing the piece here. You are a very smart and clever author. Your articles are stunning!

    ReplyDelete
  4. I have always thought that this is impossible. I was so impressed when I saw this article. Thank you for sharing the solution.

    ReplyDelete
  5. Nice Post
    BOFC can easily mass create multiple fields by simply importing CSV or XLS or XLSX file to Salesforce. It can also help you in managing Salesforce org configuration using just a few clicks

    ReplyDelete
  6. I am really thankful for this post. It answered a lot of my questions and will surely be useful for people who have interest in this sphere.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Thanks for this blog are more informative contents step by step. I here attached my site would you see this blog.

    7 tips to start a career in digital marketing

    “Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

    we have offered to the advanced syllabus course digital marketing for available join now.

    more details click the link now.

    https://www.webdschool.com/digital-marketing-course-in-chennai.html

    ReplyDelete
  9. This is an amazing blog, thank you so much for sharing such valuable information with us.

    Web designing trends in 2020

    When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

    we have offered to the advanced syllabus course web design and development for available join now.

    more details click the link now.

    https://www.webdschool.com/web-development-course-in-chennai.html

    ReplyDelete
  10. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. poker88

    ReplyDelete
  11. Nice Blog!
    How to Delete Deposits in QuickBooks ? Get in touch with our QuickBooks expert for instant solution.
    Click here to know How to Delete Deposits in QuickBooks
    Dial on our tech support Phone Number : +1-844-908-0801.

    ReplyDelete
  12. AnyConv online converter is better than others in converting audio and video files, as well as documents and images.

    ReplyDelete
  13. Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. PhD Thesis Writing Service

    ReplyDelete
  14. I don't think there is a simpler way to convert salesforce classic notes into lightning notes as you mentioned in your post. I tried Essay Writing Services once and believe me, the result was beyond my expectations.

    ReplyDelete
  15. Very informative post. Much thanks again. Really Cool.
    private note

    ReplyDelete
  16. Wordpress has been around since 2003, but it has become even more popular since 2010. There are now over 75 million WordPress blogs and websites. The reason why is its flexibility and ease of use. If you’re serious about having a website that is fully responsive and mobile-friendly, then WordPress is the platform for you. If you’re serious about having a website that is fully responsive and mobile-friendly, then WordPress is the platform for you. For other things to look for in a Wordpress Developer here is a list of qualities you should expect from a developer.

    ReplyDelete
  17. NOte is converted into Content note but the issue is if the converted note is already inserted once than if we again run the script it will agian insert the same note. How can we solve this issue so that the converted note will save only once.

    ReplyDelete