A. cannot be used as AccountShare is Accounts ObjectPermissions
D. cannot be used as you can't insert a user in a transaction with other sObjects
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dml_non_mix_sobjects.htm
correction to my previous answer.
ans should be BD. cannot be A because Accountshare object is related to user / group ( Userorgroupid) here is the reference: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_accountshare.htm
A, D is Correct.
In option A, the "Account" object and "AccountShare" object are related to sharing records with other users, so it is common to perform DML operations on these objects in the same transaction.
In option D, the "Account" object and "Order" object are related to sales transactions, where an order may be related to an account. Therefore, it is also common to perform DML operations on these objects in the same transaction.
Option B, "Case" object and "CaseComment" object are related to managing comments on a case, but they are not related to each other through a direct relationship. So, they cannot be used together in the same transaction.
Option C, "Opportunity" object and "User" object are not directly related to each other, so they cannot be used together in the same transaction.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ncore
Highly Voted 2 years, 12 months agoskipper009
2 years, 9 months agotester1987
Most Recent 10 months, 3 weeks agoRegNav
1 year, 6 months agoTing21
1 year, 7 months agoTing21
1 year, 7 months agocPickle
1 year, 7 months agoGGJJ
1 year, 9 months agolorenac2
1 year, 10 months agosf2022
1 year, 11 months agoNitrOxygeN
3 years, 6 months ago