How can I count the number of fields that contain the same prefix?

Options

How can I set up a Field Formula (or any other action) to count the number of fields containing the same base prefix?
For example, counting the number of trigger attachments from an email trigger based on how many fields contain "trigger-attachment". Or how many fields are created during an OCR action with the prefix "ocr-output"

Tagged:

Answers

  • Kevin_207951
    Options

    Workaround found: My original goal for this was to open up a number of subprocesses depending on how many fields with a prefix were created in a previous step ("prefix"-2, "prefix-3"...etc). I ended up just creating a loop that had a counter in it that created a new process for each time it was reopened. Once the step in the loop looked for a field and found that wasn't there (e.g. "prefix-31" when there were only 30), it would exit the loop and move on. Not the quickest or most clean, but effective.