You need to sign in to do that
Don't have an account?

Auto changing field value based on another field
Hi,
I have a custom status picklist field, the value of which changes at every approval step. This is achived through field update for all the 5 approval steps. I have one more picklist field for which I want it's value to be changed automatically whenever status field value changes. I am thinking of workflow rules but I will have to create so many (at least 7). Is there any better solution? or workflow rule is best option?
I have a custom status picklist field, the value of which changes at every approval step. This is achived through field update for all the 5 approval steps. I have one more picklist field for which I want it's value to be changed automatically whenever status field value changes. I am thinking of workflow rules but I will have to create so many (at least 7). Is there any better solution? or workflow rule is best option?
In the step where you enter the formula for your formula field, the content would look like this (with all conditions and with your actual picklist field value:
CASE(1,
IF(ISPICKVAL(myPicklist__c, "ApprovalStep1"), 1, 0), "value for step 1",
IF(ISPICKVAL(myPicklist__c, "ApprovalStep2"), 1, 0), "value for step 2",
...
"value for default result")
the "value for [x]" string would be the resulting values for the text field that you are setting in lieu of a picklist.
All Answers
In the step where you enter the formula for your formula field, the content would look like this (with all conditions and with your actual picklist field value:
CASE(1,
IF(ISPICKVAL(myPicklist__c, "ApprovalStep1"), 1, 0), "value for step 1",
IF(ISPICKVAL(myPicklist__c, "ApprovalStep2"), 1, 0), "value for step 2",
...
"value for default result")
the "value for [x]" string would be the resulting values for the text field that you are setting in lieu of a picklist.