Announcement

Collapse
No announcement yet.

Formula works in sandbox but not in the workflow

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

  • Formula works in sandbox but not in the workflow

    Hi!
    When trying the formula in the sandbox I have a proper result however when workflow fires, result is not the
    If someone can give me a hint, I would appreciate it, thanks!
    Attached Files

  • #2
    Hi Russ,

    Do you inserted Formula to Execute Formula Script action or Conditions?
    Click image for larger version

Name:	image.png
Views:	263
Size:	61.8 KB
ID:	95595Click image for larger version

Name:	image.png
Views:	242
Size:	58.0 KB
ID:	95596

    In my case, works smoothly:
    Click image for larger version

Name:	image.png
Views:	254
Size:	49.0 KB
ID:	95597​​​

    Comment


    • #3
      Originally posted by Vadym View Post
      Hi Russ,

      Do you inserted Formula to Execute Formula Script action or Conditions?
      Click image for larger version

Name:	image.png
Views:	263
Size:	61.8 KB
ID:	95595Click image for larger version

Name:	image.png
Views:	242
Size:	58.0 KB
ID:	95596

      In my case, works smoothly:
      Click image for larger version

Name:	image.png
Views:	254
Size:	49.0 KB
ID:	95597​​​
      Hi, in actions, create related entity
      Attached Files

      Comment


      • rabii
        rabii commented
        Editing a comment
        you need to use workflow\targetEntity\attribute('serviceType') when you are on create related entity

    • #4
      Because the formula context entity is switched to the related record that is being created. See https://docs.espocrm.com/administrat...mula-functions

      Comment


      • #5
        Originally posted by yuri View Post
        Because the formula context entity is switched to the related record that is being created. See https://docs.espocrm.com/administrat...mula-functions
        thanks

        Comment

        Working...
        X