|
|
|
|
|
Force.com Discussion Boards :
Developer Boards :
General Development :
Help on Creating a Workflow Rule
|
|
|
|
|

|
Help on Creating a Workflow Rule
|
|
gilbert8109
Regular Contributor
Posts: 19

Message 1 of 2

Viewed 712 times
|

|
|
Hi, I need to create a workflow rule on a custom object that changes records marked as active in that object to inactive, when the record was last modified 7 days ago or earlier. This needs to be done as a formula I think, but I don't know how to create the formula. Details: So, the field that should change, when this rule is finally created, is a custom field in the custom object called "Active" and it is a checkbox (true indicates the record is active, false indicates the record is inactive). I need this workflow rule to change all records currently marked true for "Active" to false, IF the record was modified 7 adys ago or earlier. In words I think the formula looks like this: IF record is true for "Active" field, and LastModifiedDate is less than or equal to (Today - 7 days), THEN change record to false for "Active" field. Can someone help me with the syntax and actual coding of the formula I need? Thanks a lot.
|
|
|
|
09-16-2009 06:44 PM
|
|
|
|
|
|

|
Re: Help on Creating a Workflow Rule
[ Edited ]
|
|
destinationcrm
Regular Visitor
Posts: 2

Message 2 of 2

Viewed 692 times
|

|
|
the workflow rule may be
DATEVALUE(LastModifiedDate ) < ( TODAY() -7)
-OR - LastModifiedDate < (NOW() -7) and then the field update can be applied!! hope that helps ~S Message Edited by destinationcrm on 09-17-2009 03:56 AM
|
|
|
|
09-17-2009 03:53 AM
|
|
|
|
|
|
|
|
|
|