Identify when affected Items' server methods are being invoked on Express ECO Release/Revise?

I have some Custom BOM Item Types controlled by the Express ECO.

 

On the custom Items we have the on Before Update and On after Update Server Events responsible for formulating the name(based on some specific field values) of these Items.

Is there a standard way to ensure that the server methods are not called while the Items are promoted to the released state from the Express ECO(Release/Revise)?

P.S. When it is called the On Before Update Method doesn't receive the entire context of the affected Item and sets the name to blank value.

Thanks :)

  • Hi Shruti,

    inside your Method you could check the current state. If the state is wrong, you could throw an error message. To discover if Items are affected by an Express ECO, you probably have to search if there an active ECO with your Part as affected item. If you don´t need such a detailed check, already the change_pending property could do the job.

    When you use LifeCycle Methods, you could also use the Item transition for this check. This way you can precisely tell which event cause the transition.