Announcement

Collapse
No announcement yet.

Add "Contains" condition into workflow.....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add "Contains" condition into workflow.....

    Hi developers,

    I am using Advanced Pack and would like suggest it adds "Contains" condition as in Report filter function..

    thanks.

  • #2
    Hi,

    You can use formula as an alternative.

    string\contains(yourTextField, 'string')

    Comment


    • #3
      Originally posted by yurikuzn View Post
      Hi,

      You can use formula as an alternative.

      string\contains(yourTextField, 'string')
      Thanks yuri for your attention!

      I have tried the the attached screenshot or the following:

      streamCount = ifThen(string\contains(Post, '#Followup#'), streamCount+1)

      but neither works....

      Can you let me know anything I did wrong?

      Thanks.

      Chris

      Comment


      • #4
        EspoCRM never uses upper case for a first letter in field, attribute, link names. https://github.com/espocrm/documenta...tion-arguments

        You should not use label values in formula. System name is 'post', not 'Post'.

        Comment


        • #5
          Originally posted by yurikuzn View Post
          EspoCRM never uses upper case for a first letter in field, attribute, link names. https://github.com/espocrm/documenta...tion-arguments

          You should not use label values in formula. System name is 'post', not 'Post'.
          I changed to lower case but still bad luck.....

          I tried two ways as in attached screenshot but both failed....

          Please help!

          Comment


          • #6
            https://github.com/espocrm/documenta...ula-conditions
            "There should not be any ; delimiter used in formula code when it determines a condition."

            You need to use && operator instead of semicolon.

            Comment


            • #7
              Originally posted by yurikuzn View Post
              https://github.com/espocrm/documenta...ula-conditions
              "There should not be any ; delimiter used in formula code when it determines a condition."

              You need to use && operator instead of semicolon.
              It works very well now. Thanks you so much for your patience!

              With best regards.

              Comment

              Working...
              X