Comments (4)
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.
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.
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.
Fixed per #5
from sfdc-convert-notes-to-chatter-notes.
Related Issues (20)
- Thank you! HOT 1
- Salesforce System Error: 208410828-86802 (1615802660) HOT 7
- Conversion is Simply not Happening HOT 2
- Note body is empty HOT 3
- Cannot see item in log HOT 3
- Share Private Notes to Parent Records
- Warn about non ASCII characters
- Been running process for days but now get Salesforce System error HOT 4
- Enhanced Note Created By is not the same as original Created By HOT 5
- Invalid content ids specified HOT 10
- Can't install getting an error HOT 1
- Note Not Editable After Conversion HOT 2
- Unable to install in Production environment HOT 3
- Batches are failing HOT 5
- Weird behavior on migrating notes HOT 1
- I want to track notes conversion in a large org. HOT 2
- How to mass pull note ID's? HOT 1
- Newlines being converted to <br> text HOT 2
- Install Failed: Dependent class is invalid and needs recompilation HOT 2
- All notes not getting converted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sfdc-convert-notes-to-chatter-notes.