GithubHelp home page GithubHelp logo

Comments (4)

douglascayers avatar douglascayers commented on August 17, 2024

Hi @NimaNotes,

Good catch on the createdById vs. ownerId. I'll make the change to use the ownerId instead.

If you've made the code change and still getting error, can you confirm you're in an org that's on Summer '17 (API 40.0) release? It's in the Summer release where Salesforce updated their API to respect the Create Audit Fields on ContentNote object.

Thanks,

Doug

from sfdc-convert-notes-to-chatter-notes.

NimaNotes avatar NimaNotes commented on August 17, 2024

Hi Doug,

Thanks for getting back to me on this. Yes, its summer 17 (API 40.0) release and I was getting the same error after using ownerId instead of createdById but then I realized the new active owner that I used to update the existing notes had the password expired. Once I reset the password and logged in from UI tried the code again and it worked this time.

We have the same issue for attachments too and since thats a managed package I dont know if you are using the createdById or ownerId, is that something you can please check from your end?!

Thanks a lot for all your helps on these two apps!!!

Nima

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

Thanks for the update @NimaNotes.

Yes, the Attachment's conversion uses the same logic so I'll update it too to use the OwnerId instead of CreatedById.

Thanks!

from sfdc-convert-notes-to-chatter-notes.

douglascayers avatar douglascayers commented on August 17, 2024

Fixed per #5

from sfdc-convert-notes-to-chatter-notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.