• asgiri
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,

I have developed a Apex test case that tests a trigger.
This test case needs to run as another user whose role is different from "System Administrator".
How would I do that? Does Apex have the equivalent of runAs()?

Andi Giri
  • March 21, 2008
  • Like
  • 0
Hello,

Has anyone had to mimic the clone button on an opportunity? It is a standard button. We have no access to the s-control source code. We wanted to replicate the clone button with a minor modification to populate a field that captures the opportunity number / name of the original deal. We were hoping to get a code snippet rather than re-invent the wheel.

Many thanks!

Kathy