function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
M RahmanM Rahman 

Apex Class Run as another user

Hi
I'm trying to setup some test data for functional testing using Apex. The code needs to be run as with another user. Do you have any suggestion on this? I've tried System.runAs which cannot be used as the data setup class is not a test class.
Raj VakatiRaj Vakati
I dnt think so you can able to run it as other user in classes ..