- 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: how to udpadate the opportunity field once pro...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
how to udpadate the opportunit y field once product is created?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-10-2012 05:15 AM
i created field in Opportunity object i.e Renewal Date.
once Product is added to Particual Opportunity record then automatically updated Renewal Date with Today Date .using workflow. please help me.......................................
Solved! Go to Solution.
Re: how to udpadate the opportunit y field once product is created?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-10-2012 09:39 AM
Use a trigger, not workflow.
Go to Your Name->Settings->Customize->Products->Triggers, then create a new trigger using the 'after insert'.
Here is a simple example: http://boards.developerforce.com/t5/General-Develo
Re: how to udpadate the opportunit y field once product is created?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-10-2012 10:10 PM
Well , you do not need code for this. Work flow should be good enough.
Have a roll up field in Opportunity, that will be count of total Products, lets say field name is "Number of Products".
Now have a workflow and fire only if that field is changed.
Rule Criteria: ISCHANGED(Number_of_Products__c)
have a field update for this workflow.
Just select the field to update and Specify new field value as: TODAY()
hope this helps
SF Partner

