Using the Flow BuilderFlow Builder, you can create a record-triggered Flow to do this for you.
- Create a record-triggered Flowrecord-triggered Flow to run when record created or updated, before save.
- Choose your object.
- Add a condition to match the business need "dynamically based on another field" i.e now pick whatever field you are looking to check before determining what the subsequent picklist value will be.
- Create a Decision block with 2the number of outcomes that match the conditions to match the field from step 3 to the picklist values.
- Create any number of Assignment blocks to link each outcome to their respective picklist value.
Below is an example where I check a Boolean value in my Decision block and then based on true/false, two assignment blocks will mark the record picklist field as active or not.
Using the Process BuilderProcess Builder, you can define a Process tothat will also do this for you and offers more complexity if ever needed.
- Choose Object and Specify When to Start the Process
- Create a criteria and action for each action group i.e if field A is XXX value, set picklist to YYY
- Each immediate action is expected to be an "update record" action where you assign the picklist value
- Note, in you action you should choose "Select the Account record that started your process"
Below is an example where I again check a Boolean value in my two criteria blocks and then based on true/false, two immediate action blocks will mark the record picklist field as active or not.