Change Order Events

Change Order Events

Anonymous
Not applicable
432 Views
1 Reply
Message 1 of 2

Change Order Events

Anonymous
Not applicable

I want to modify the Restrict Operations sample code to include a check before the state changes to Aproved.  The UpdateChangeOrderLifecycleState event fires for all state changes - is there some way to fire only for state change to Approved? Any advice or sample code very much appreciated.

0 Likes
433 Views
1 Reply
Reply (1)
Message 2 of 2

Redmond.D
Autodesk
Autodesk

Yes, you will get events for all Change Order state changes.  That's the way it's designed to work.

If you are only interested in Approved changes, you will need to look at the event args and filter out all events that you don't care about.

 

Here is a blog article that contains some more sample code.  It deals with file lifecycle states, which is a different set of APIs, but it shows how to filter based on event args.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes