• Lara Wasowski
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi all,

I have setup the Salesforce Wearable Pack for Android Wear and have configured the Quote Approval app, as found and described here:
https://github.com/developerforce/WearablePack-AndroidWear/blob/master/README.md
The app works fine, until I start trying to make some small changes to it - at which point I start getting some strange behavior and/or errors.

1) When an approval has been approved or rejected I would like to update the Quote Status field accordingly.  So, I tried adding a Field Update action to the Approval Process (as Final Approval and/or Final Rejection action).  When I do this, the approval process (which has been working fine; my colleague Tor creates a quote with a >20% discount, it comes to me for approval and my action gets registered) all of a sudden starts looping - and sends the approval to my manager after I have approved it.  I have made no other changes to the process other than adding the action...

2) Additionally, I seem to be getting this error a lot:
Validation Errors
While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger CGDemo2015.QuoteApproval caused an unexpected exception, contact your administrator: CGDemo2015.QuoteApproval: execution of BeforeUpdate caused by: System.DmlException: Process failed. First exception on row 0; first error: ALREADY_IN_PROCESS, Cannot submit object already in process.: []: Trigger.CGDemo2015.QuoteApproval: line 20, column 1".
This is related to e.g. trying to submit a revised Quote for approval - which should work...

Attached are some screenshots of the "looping" behavior that starts when I add an action.
Hi all,

I have setup the Salesforce Wearable Pack for Android Wear and have configured the Quote Approval app, as found and described here:
https://github.com/developerforce/WearablePack-AndroidWear/blob/master/README.md
The app works fine, until I start trying to make some small changes to it - at which point I start getting some strange behavior and/or errors.

1) When an approval has been approved or rejected I would like to update the Quote Status field accordingly.  So, I tried adding a Field Update action to the Approval Process (as Final Approval and/or Final Rejection action).  When I do this, the approval process (which has been working fine; my colleague Tor creates a quote with a >20% discount, it comes to me for approval and my action gets registered) all of a sudden starts looping - and sends the approval to my manager after I have approved it.  I have made no other changes to the process other than adding the action...

2) Additionally, I seem to be getting this error a lot:
Validation Errors
While Saving Record(s) There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger CGDemo2015.QuoteApproval caused an unexpected exception, contact your administrator: CGDemo2015.QuoteApproval: execution of BeforeUpdate caused by: System.DmlException: Process failed. First exception on row 0; first error: ALREADY_IN_PROCESS, Cannot submit object already in process.: []: Trigger.CGDemo2015.QuoteApproval: line 20, column 1".
This is related to e.g. trying to submit a revised Quote for approval - which should work...

Attached are some screenshots of the "looping" behavior that starts when I add an action.
On Opportuntities we have the default "Next Steps" field, but it's not very long and we'd like to retain back history of the progress of a deal.  I've created a long text field "Sales Progress".  Here's what I'd like to do using a workflow trigger and field update:  Whenever a new entry is made in Next Steps, copy that entry over to Sales Progress and add it to the bottom (or top) of the existing text.  What would the formula look like?