You need to sign in to do that
Don't have an account?
steve456
Field update
I have Lease Type field on object Building__c.It is text field.
When Lease Type contains 'Monthly'
Status shud be active
If it was LeaseType equals Monthly i would have given straight forward.But am looking as to give if it contains Monthly
If you are trying it in Workflow, you can do CONTAINS( Building__c, 'Monthly')
If its on trigger, you can do in the look do building.Lease_Type__c.contains('Monthly'); where building is the loop variable on trigger list.
Let me know if there is something else you are looking for as its not very clear.
Hi,
Have you checked a Text function - CONTAINS. May be that can solve your problem!!
I am assuming the active field on your custom object Building__C is a chekbox/boolean. If not ,say so :) If you really want to use apex, you can make a trigger, but thats more work and requires test code.
Go to setup>create>workflows&approvals>workflow rules
make a new rule
select building__c object, click next
enter a name
select Every time a record is created or edited
rule creteria> when creteria are met (default choice)
Field> Lease Type
operator > contains
Value> Monthly
save
make a new field update
give it a name
object> Building__c
field to update > Status__c
Chekbox option > true
save
Go to setup>create>workflows&approvals>workflow rules
activate the workflow rule you just made