What is the meaning of DML? - ProProfs Discuss
Advertisement

What is the meaning of DML?

Asked by Pal, Last updated: Jul 18, 2021

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

A.Jeff

A.Jeff

A.Jeff
A.Jeff

Answered Apr 25, 2018

Use a System. runAs () block to update the contact. By and large, all Apex code keeps running in system mode , where the authorizations and record sharing of the present user are not considered. The system technique runAs empowers you to compose test strategies that change the user context to a current user or another user so the user's record sharing is upheld. The runAs strategy doesn't implement user consents or field-level authorizations, just record sharing.

You can utilize runAs just in test techniques. The first system context is begun again after all runAs test techniques finish

You can likewise utilize the runAs technique to perform blended DML activities in your test by encasing the DML tasks inside the runAs block. Along these lines, you sidestep the blended DML mistake that is generally returned when embeddings or refreshing setup objects together with different sObjects

upvote downvote
Reply 

devilzP

devilzP

devilzP
DevilzP

Answered Apr 05, 2018

Use a System. runAs () block to update the contact.

upvote downvote
Reply 

Pal

Pal

Pal
Pal

Answered Nov 20, 2017

Use a System. runAs () block to update the contact.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.