Skip to main content
7 events
when toggle format what by license comment
Jul 16, 2018 at 16:13 answer added David Reed timeline score: 0
Jul 16, 2018 at 14:45 comment added Shuaib Ahmed I think what you are saying more directly answers the question. If you have any more to share about packaging an Approval Process that'd be great. I could accept the answer below. Thanks!
Jul 11, 2018 at 16:08 comment added David Reed Yes, you can package the Approval Process metadata and include Apex unit tests in the package that make use of it (see Renato's answer for more).
Jul 11, 2018 at 14:53 comment added Shuaib Ahmed Not submit a record -- I mean actually define it. So could i then package metadata with an Approval Process define and THEN run code to test against it? I think that could work.
Jul 11, 2018 at 0:19 answer added Renato Oliveira timeline score: 2
Jul 10, 2018 at 21:55 comment added David Reed When you say 'create', do you mean 'submit a record into the approval process'? You can't create the process itself without the Metadata/Tooling APIs, neither of which you can call in a unit test.
Jul 10, 2018 at 21:06 history asked Shuaib Ahmed CC BY-SA 4.0