Does the submit for approval process works in Salesforce1? Is there currently a way to submit custom objects for approval in the Salesforce1 mobile app?

Yes, thanks! I also wrote a trigger to toggle the approval process from the post (publisher action menue)

trigger Feed_Item on FeedItem (after delete, after insert, after undelete, after update, before delete, before insert, before update) {

if(trigger.isBefore && Trigger.isInsert) {
      for (FeedItem f : trigger.new)
         if (f.Body.startsWith('!')) {
           approval.ProcessSubmitRequest aprlPrcs = new   Approval.ProcessSubmitRequest();      
           aprlPrcs .setComments('Submitting record for approval.');
           approval.ProcessResult result = Approval.process(aprlPrcs);

           f.Body='Submitting record for approval';


1 Answer 1



As per the above document

These approval-related options aren’t available in the Salesforce1 app:

• Submitting records for approval.

• Recalling approval requests.

• Reassigning approval requests.

• Accessing an approval request from the record view. Instead, approvers need to tap the Salesforce1 notification.

• Manually selecting the next approver. For approval requests that require this manual selection, the approver needs to log in to the full Salesforce site.

So an alternate approach can be to use Publisher Actions and use approval processing classes and build the visualforce page with action attribute defining logic and using Publisher action.

Sample approval process class would be as follows

// Create an approval request for the account
    Approval.ProcessSubmitRequest req1 = 
        new Approval.ProcessSubmitRequest();
    req1.setComments('Submitting request for approval.');

    // Submit the approval request for the account
    Approval.ProcessResult result = Approval.process(req1);


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .