Announcement

Collapse
No announcement yet.

Create workflow to add or subtract feild in related entity

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

  • Create workflow to add or subtract feild in related entity

    i have a case with a feild i created called time used. In Accounts i have a feild i created called Total Time Used. How can i make a workflow that will take the time i used on a case and subtract ot add to the feild Total Time Used in Accounts?

  • #2
    any help would be grateful

    Comment


    • #3
      Hello
      I current total in Accounts are correct calculated and you wont delete cases or reassign them to other accounts, it could be possible with Workflow. In other case its better to create a hook


      But if you want to implement it with Workflow, create after saved record action for case.
      in condition check if Time Used changed. In Actions - Update Related entity - Account
      in formula set something like totalTimeUsed = totalTimeUsed + targetEntity\attribute('timeUsed') - targetEntity\attributeFetched('timeUsed')

      Comment


      • #4
        Thank worked! Thanks!

        Comment

        Working...
        X