- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
02-05-2013 04:44 AM
I am using standard approval process with several steps(each approval process having total 8 steps) based on user country criteria.Those approval process are getting called through trigger .
Like if the record gets updated trigger getting fired and based on criteria crossponding approval process gets called.
First approval is called and after some field update again the next approval is called through trigger,the entire functionality is working like that.
But some time(1 out of 50-60 times) after the field update of the first approval next approval is auto rejected. But if i am again working with the same record i am not able to replicate it again.
i have not added such criteria that if the criteria will not match for approval it should rejected or approved .
Any suggestion will be much appreciated.
02-05-2013 05:50 AM
One possible scenario maybe, at one of the approval step you might have give , if condtion satisfies then enter this step else reject (instead of else next step) there is where it is getting auto rejected.
Check whether the same is happening
02-05-2013 07:30 AM
Thanks for your reply
but i have checked all steps for the approval process there is no such condition given for any step.
And not only that this scenario is not getting repeated if i am working with same record after getting rejected with same value without changing any releavant value the approval process getting enable for the releavant user to either approve or reject.
The entire scenario is like that i am submitting the record for approval all relevant user approval required for that record one by one. Some time i am getting the error that for next approval the record getting rejected automatically. this entire functionality is controled using trigger and class.