promote() method

Within a VB method being called on BeforeAdd for an Item, what is the proper syntax to promote new items to a specific Lifecycle state initially? Me.setAction("promoteItem") Me.setProperty("state",stateX) or Me.promote(???,StateX)
Parents
  • Either of those options would be acceptable. I should point out that the code snippets above are not actually completely identical. If you setAction and state, you must also do Me.Apply() to ensure the promotion is completed. In addition, the second option should be Me.promote(StateX, "Some optional comment to store in the history record, if applicable.")
Reply
  • Either of those options would be acceptable. I should point out that the code snippets above are not actually completely identical. If you setAction and state, you must also do Me.Apply() to ensure the promotion is completed. In addition, the second option should be Me.promote(StateX, "Some optional comment to store in the history record, if applicable.")
Children
No Data