Body: <p>I have a CiviRule with a large number of actions, all in a sequence with delays.  I want to insert an action in the middle of the sequence.  When I do &quot;Add Action&quot; it puts the action at the end of the list (very reasonably).  Is it true that there is no &quot;move up&quot; or &quot;reorder&quot; capability for actions?  I have tried Google and searching here but cannot find anything pointing to this.</p>
  <p>I'm interpreting this to mean that if I'm editing a CiviRule and I need to put a new action in the middle of a series of actions, I basically need to delete and recreate anything that would come after the point where I want to insert the new action?</p>
  <p>I hesitate to ask but is there a database manual edit hack around this even?  Something I can do programmatically with an API call?</p>
  <p>Thank you</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-29T21:15:50.170Z
Comments.Text: Did you play around with the delay - i.e. using delay as order? I can't find any db field to hold order information.
Comments.UserDisplayName: nielo
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-30T22:22:30.430Z
Comments.Text: @nielo - Isn't delay the delay versus the prior action?  Or is it delay versus the very first action?  That ... I hadn't considered that possibility!
Comments.UserDisplayName: richardsplayground
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-30T22:25:56.570Z
Comments.Text: @nielo You are right - delay is from the event that triggered (https://docs.civicrm.org/civirules/en/latest/create-your-own-delay/) -- so I could edit the delay to reorder the actions.  They would not be listed in order in the list of actions, so you'd have to read the list of actions carefully, but it's better than nothing.  Thank you!  If you want to put this as an answer I can mark it as accepted.
Comments.UserDisplayName: richardsplayground
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-10-31T13:27:29.847Z
Comments.Text: Feel free to answer yourself, it was just an educated guess and you did the investigation :)
Comments.UserDisplayName: nielo
Tags: <civirules>
Title: Re-ordering CiviRules Actions
ThreadText: # Re-ordering CiviRules Actions
  
  (Asked by: username_0 on 2024-10-28)
  
  I have a CiviRule with a large number of actions, all in a sequence with delays. I want to insert an action in the middle of the sequence. When I do "Add Action" it puts the action at the end of the list (very reasonably). Is it true that there is no "move up" or "reorder" capability for actions? I have tried Google and searching here but cannot find anything pointing to this.
  
  I'm interpreting this to mean that if I'm editing a CiviRule and I need to put a new action in the middle of a series of actions, I basically need to delete and recreate anything that would come after the point where I want to insert the new action?
  
  I hesitate to ask but is there a database manual edit hack around this even? Something I can do programmatically with an API call?
  
  Thank you
  
  **Tags:** civirules
  
  > **Comments:**
  > **username_1**: Did you play around with the delay - i.e. using delay as order? I can't find any db field to hold order information.  
  > **username_0**: @username_1 - Isn't delay the delay versus the prior action?  Or is it delay versus the very first action?  That ... I hadn't considered that possibility!  
  > **username_0**: @username_1 You are right - delay is from the event that triggered (https://docs.civicrm.org/civirules/en/latest/create-your-own-delay/) -- so I could edit the delay to reorder the actions.  They would not be listed in order in the list of actions, so you'd have to read the list of actions carefully, but it's better than nothing.  Thank you!  If you want to put this as an answer I can mark it as accepted.  
  > **username_1**: Feel free to answer yourself, it was just an educated guess and you did the investigation :)  
  
  ---
  
  ## 0 answers
  
  