All Questions
4 questions
1
vote
1
answer
777
views
DmlException Creating CMS Library/Folders
I have some Apex code written to create a new Account, and then create a new Library (ContentWorkspace) and new Folder (ContentFolder) within that Library to house assets for that Account. It appears ...
0
votes
1
answer
3k
views
Upsert DML Operation
Consider the below code. I thought the way upsert DML works is that if it sees that there is a new record with matching key (here in this case there is already an account with Name = Acme and ...
0
votes
1
answer
308
views
How to avoid MIXED dml Exception in update operation? [closed]
I got System.DmlException in update operation. Can anyone please check the below code and help me to resolve the exception.
I have tried to solve it for the last two days but I couldn't find a ...
1
vote
1
answer
1k
views
You have uncommitted work pending. Please commit or rollback before calling out even if we put DML in future method
I know as per documentation, we cannot perform DML and then callouts from apex class.
In my scenario, I have a callout then I am performing a DML which is placed inside a future method and again ...