Update the field "modifiedAt" in the parent entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mr2d2
    Senior Member
    • Apr 2017
    • 126

    Update the field "modifiedAt" in the parent entity

    Hello!
    How to update the field "modifiedAt" in the parent entity of the opportunity when changing the related call?
    I tried to do it using the workflow, but I noticed that they never get to update the parent entity. Workflow is triggered, but does nothing.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    I created a rule for Opportunity. Update Related Entity "Account"
    Code:
    modifiedAt=datetime\addMinutes(datetime\now(), '-3');
    modifiedById='system';
    And it works.
    Could you give more details?

    Comment

    • mr2d2
      Senior Member
      • Apr 2017
      • 126

      #3
      Perhaps you misunderstood me.
      I can not modify the Parent object using the workflow.
      If objects are related by the type "Parent-to-Children"
      Run the workflow where entityType is equal to the "Children" object and change the "Parent" object. This does not work, nothing changes in the "Parent" object.

      Comment

      • mr2d2
        Senior Member
        • Apr 2017
        • 126

        #4
        Originally posted by tanya
        Could you give more details?
        I want to create a workflow that will change the "modifiedAt" field in the Opportunity object if the "Status" field associated with this "Call" object has changed
        The objects "Opportunity" and "Call" are connected like "Parent-to-Children"

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          I don't set any condition and it works for me
          (the easiest way to test, if update run - set description value)
          Attached Files

          Comment

          • mr2d2
            Senior Member
            • Apr 2017
            • 126

            #6
            Thank you! That helped!

            Comment

            Working...