- 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
- :
- Active validation rule, one time.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Active validation rule, one time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-16-2012 05:41 AM
Good morning.
I have a problem.
How to I create a validation rule, but it works once.
I have a validation rule That test date if the date of close field, equals is today. After i have closed and the opportunity won this validation is activate, but I want to perform this validation rule not more.
Thanks for replies.
Re: Active validation rule, one time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-16-2012 06:04 AM
AND(
ISPICKVAL( StageName, "Fechado e ganho"),
IF(TODAY() < CloseDate || TODAY() > CloseDate ,true,false),
NOT(
ISPICKVAL(PRIORVALUE( StageName), "Fechado e ganho" )
)
)
It's work. But is it?
Re: Active validation rule, one time.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-16-2012 11:52 AM
Validation Rules by themselves are desiged to always be active - you have to create a field to "shut it off" via logic.
You're probably going to need another custom field (checkbox I would recommend) that would be updated to TRUE (via workflow) once the condition is met where you don't want to have the Validation Rule fire anymore. You'd then add that new field into your "AND" logic.
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.
-Andy
Salesforce Technologist / Cat Herder
http://www.twitter.com/andyboettcher

