Visual Workflow – Mystery Error Message for Flow Entry Criteria Formula

formulavisual-workflow

I am attempting to use a formula entry criteria in an after save flow. However, I run into errors when checking the syntax. My starting formula for the flow is exhibit 1) and when I click check syntax I get the error messages in exhibit 2) and exhibit 3). Strangely when I remove {!$Record.Group_Type__c} = "Brand", from the formula I get the error message in exhibit 4). I don't understand why it would say that field doesn't exist when it absolutely does and is available in the FLS (Visible).

I've submitted this case to SF and the person helping me says it is an issue with the flow formula evaluating the formula fields in exhibit 5) and exhibit 6)(both text formulas) at runtime. I suppose that because they are formula fields the flow formula is looking up to a nonexistent value? I don't fully understand how thats possible for an after save flow.

It's possible this has something to do with referencing a formula field that uses a cross-object reference but I haven't seen any SF documentation around a limitation like that. Plus I don't understand how the exhibit 1) formula could work in a formula field but not in a flow formula entry criteria (It also works as a flow variable inside the flow).

Any help or clarification on this would be amazing, I'm fully stuck.

Exhibit 1)
Flow Entry Criteria

Exhibit 2)
enter image description here

Exhibit 3)
enter image description here

Exhibit 4)
enter image description here

Exhibit 5) – {!$Record.Logo_Name_Text__c}
enter image description here

Exhibit 6) – {!$Record.Group_Type__c}
enter image description here

Best Answer

This appears to be a Salesforce Flow Limitation - Relayed from another question - "This is because Formulas in entry criteria that use Formula fields involving traversals are currently not supported by Salesforce. The workaround, for now, is to use the formula instead of the reference to that formula"

Related Topic