Hello everyone, I have a custom field made called Score. The field Score only has numerical values from 1 to 10. I also have a field called R.Status which has a text field.
I want to create an automation that activates when the value in the field Score changes. If the value (in Score) increases, I need the automation to change the value in the field R.Status to "Increased", and vice versa. Are there any ways to do this?
Example
Old: Score = 5 and R.Status = Stable
then
New: Score: 7 ---> R.Status = Increased
Hello @Bartu Üstün
You could use {{fieldChange}} smart values to compare old and new.
From above link:
{{fieldChange.from}} - Returns the previous raw value of a field, i.e. the JSON representation of the value.
{{fieldChange.to}} Returns the new raw value of a field, i.e. the JSON representation of the value.
But do note that this smart value does not work for certain fields. SO you need to confirm that they work.
I am sharing steps to first you log these values to see if you are seeing the old/new values.
Run the rule by changing the field "score" value and checking if you are seeing the old/new values. Do go further than above unless you verify.
If above looks good, you can continue with:
Please share screenshots if stuck. Hope ite helps. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey man, I couldn't make this work. When the value in the field changes, nothing happens (automation doesn't work). Shouldn't I specify the field's name while writing the code? For example, shouldn't it be {{fieldChange.Risk Score.to}} or {{fieldChange.RiskScore.to}} instead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is your rule based on Field Value Changed (Risk Score)? If so, then it should work as Kalyan has described. Can you share your rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bartu Üstün , welcome to the community.
So in order for automation to achieve this, it needs to have access to the previous value and the new value. The new value obviously will be in the existing custom field score, however, the old value is gone. You could have two custom fields "current score" and "previous score". By doing this, then automation can compare the two values and thereby achieve your requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if that solution is something you are interested in and need assistance figuring out the details, please do let me know if you get stuck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.