Comments (2)
Good point @sfdcmatt
I'm thinking of adding an initial check at start of the test method to see if communities are even enabled. If not then exit gracefully otherwise continue on. The check would be like I did in the attachment conversion project:
Boolean communitiesEnabled = ContentVersion.sObjectType.getDescribe().fields.getMap().containsKey( 'NetworkId' );
If communities are enabeld then the org should have the standard profile for the test method to use. If not then the test still has to fail if the profile can't be found.
Besides all that, yes, I agree with your recommendation that it's best practice to query for list, check size, react accordingly.
Thanks!
from sfdc-convert-notes-to-chatter-notes.
Thanks!
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.