Forum Discussion

gaurav_gau_sharma's avatar
5 months ago

How to get comment value during Item promotion via Lifecycle

Hi Community,

I have a short question regarding the 'Get Comment' feature that we can use in LIfeCycles.

When we choose "Get Comment = 1" for a LifeCycle Transition, the end user will be asked with a dialog to add some notes why the lifecycle was changed.

Is it possible to get this comment value from Pre or Post or may be some other way?

Thanks a alot.

5 Replies

  • I never find a OOTB solution for this one. 
    But you can make a get query to the connected "History" items to get the latest comment for the entry with action "Promote". 

     

     

  • Hello
    Given your Item is versionable True and a new generation is created onPromote, the comment will be visible in the Life Cycle history:

     

     

    • angela's avatar
      angela
      Catalyst II

      Hi,

      this is exactly the comment that we want! But - we the community want to use it in Methods and do something with it automatically. The only solution I know so far is a classic "get" query over the history. It works well and is not hard to do, but I wished Aras would have an OOTB solution! Maybe an idea for the roadmap?

      Ciao

      Angela

      • yes, that's the correct approach.
        On the other side, if all was already OOTB I would have no job 😅