function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Surya Nemani 6Surya Nemani 6 

A simple flow which will update a field number field + 1 based on a pick list value

Hey there...,

I am very new to flows and understanding the structure lately. 

Here is my task.

In an object "Testing", there is a field called Iteration# defaulted to 0, value in the field will be +1 when ever the Status (Picklist) changes to "Re-Test". 

I tried using flow, but unable to achive or may be i am doing something wrong here. 

Please help me out.
Gaurav HandooGaurav Handoo
Hi Surya

If your condition is as simple as you have explained here, then I believe using Visual Flow would just be doing a redundant activity. You can achieve this simply by creating a Process Builder which runs on Update of Record and with following:
  1. Criteria:
    1. Status "Is Changed" True
    2. Status "Equals" "Re-Test"
    3. Advanced: Run only when this condition meets
  2. Action - Update Record (Same Record which starts the PB)
    1. Iteration# Formula "<Iteration# API NAME> + 1"

Hope this helps. Please mark as best answer if it does.

Cheers

Gaurav