• David Sekules 29
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Description: I have a flow which uses a text field entered by the User to find a set of matching records. For example, if they're looking for all the Admin roles, they would enter "Admin" and the lookup finds all roles whose Name "contains" the string "Admin". We then proceed differently depending on whether the search returns a single match, multiple matches or none.

In testing, we're finding that:
  • Searching for "Shotgun 5" returned no matches, where searching "Shotgun" returned a number of matches, including "Shotgun 5"
  • Searching for "Air Tattoo Crew Supervisor 1" returned the single match "Air Tattoo Crew Supervisor 10", ignoring "Air Tattoo Crew Supervisor 1" (which was also present)
  • Searching for "Disabled Enclosure Assistant X" would return nothing, but searching for "Enclosure Assistant" would return all the Disabled Enclosure Assistant roles, 1-4 and X.

According to "Operators in Flow Conditions" (https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_operators_condition.htm) "contains" should return True if "The value for Resource contains what’s entered or selected for Value" - This doesn't seem to be the case, based on the results we're getting above.

Any suggestions?
Description: I have a flow which uses a text field entered by the User to find a set of matching records. For example, if they're looking for all the Admin roles, they would enter "Admin" and the lookup finds all roles whose Name "contains" the string "Admin". We then proceed differently depending on whether the search returns a single match, multiple matches or none.

In testing, we're finding that:
  • Searching for "Shotgun 5" returned no matches, where searching "Shotgun" returned a number of matches, including "Shotgun 5"
  • Searching for "Air Tattoo Crew Supervisor 1" returned the single match "Air Tattoo Crew Supervisor 10", ignoring "Air Tattoo Crew Supervisor 1" (which was also present)
  • Searching for "Disabled Enclosure Assistant X" would return nothing, but searching for "Enclosure Assistant" would return all the Disabled Enclosure Assistant roles, 1-4 and X.

According to "Operators in Flow Conditions" (https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_operators_condition.htm) "contains" should return True if "The value for Resource contains what’s entered or selected for Value" - This doesn't seem to be the case, based on the results we're getting above.

Any suggestions?