A developer has a block of code that omits any block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization?

Respuesta :

Answer:

Anonymous Blocks

Explanation:

Anonymous Blocks would be a good alternative to apply in the case of the question above. This is because anonymous Blocks would allow ap3x code to be implemented without the need for metadata stores, but allowing all blocks to be compiled and executed in an organized and efficient way with or without shares, as the blocks presented require.