Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Submit workflow to approval after calling SubmitStage function

$
0
0

Lets say I have 5 stage workflow. When workflow comes to stage 4 (from any stage), stage says: "Waiting for Submit". Then, user needs to click "Submit" button to send that stage to approval, and then stage says: "Waiting for approval". I need to do this automatically from code.

I'm using PSI function SubmitStage to go to another stage of a workflow (for example from stage 2 to stage 4):

Guid tResult = tWf.SubmitStage(projectUID, tEptUID, true, tStageGuid);

And workflow skips to stage 4, but not straight  to approval. User still needs to click "Submit" button manually to send that stage to approval.

I've tried to use the same function twice, but it still submits only once. How can I submit that stage directly to approval?


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>