- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- Re: Opportunity Field Update
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Opportunit y Field Update
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-29-2010 11:38 AM
Hi,
I am trying to figure out the best way to add a field to already approved opportunites. There was a formula field which we plan to replace with a before insert,before update trigger.
The problem is that, the trigger calculates the values only on insert and update and we have opportunites which are approved and locked and we want to update them too with the new values calculated by the trigger.
I appreciate your feedback.
Thanks!
Re: Opportunit y Field Update
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-29-2010 06:24 PM
For updating already approved opportunities probably you can do the following:-
1. Do a silent update on these opportunity using SOQL via system log, that would fire the trigger.
2. Alternatively whatever your trigger is doing can also be done via an Apex code snippet and that can be executed via scheduleable apex .
But what is crucial is does the locking of opportunity prevent further DML statements.
Hope this helps.
Navatar Group
Re: Opportunit y Field Update
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-29-2010 07:01 PM
Hi Ispita,
Thanks for your response.
The trigger is calculating the value based on certain criteria and the opportunites that are approved are locked so can i do an update on these opportunites using SOQL or apex code snippet.
Thanks!

