You need to sign in to do that
Don't have an account?
Sami Shakith
Update a field by comparing 2 fields in the same object
Hi,
I want to update a field by comparing two other fields in the same object. For that what should i do? should i write a trigger or workflow? if trigger means how to write?
I want to update a field by comparing two other fields in the same object. For that what should i do? should i write a trigger or workflow? if trigger means how to write?
Use the minimum, pass criteria i have put it to 33
All Answers
You should go for workflow because it is out of box functionality.
So you need not to maintain it. !!!!!!!!!!!
Here are some links where you can learn
https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_defining_field_updates.htm
https://help.salesforce.com/HTViewHelpDoc?id=workflow_field_update_considerations.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=workflow_field_update_considerations.htm&language=en_US)
Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help.
Can you elobrate what is the actual requirement.
For eg i have fields like paper1, paper2 in object1 and also having result field in that object. i want to automatically update the result field after updating the paper1 and paper2, that result field should be based on the both fields.
Assuming the api name are paper1__c and paper2__c create a formulae and select return type as number with number of decimal places and use the following formulae
paper1__c + paper2__c
Don't forget to select best answer to make our efforts visible in the developer forum.
Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help.
TEXT(paper1__c + paper2__c )
Whatever is possible I will try to answer to the best of my knowledge
Use the minimum, pass criteria i have put it to 33