Solved

add fields or change MESSAGE_TEXT in a system defined event


Userlevel 2
Badge +4

Hello community. We want to use the system event NEXT_AUTH_PURCH_ORDER to mail the acknowledger/authorizer. This works, with a new action with adjusted email text. Our version is 

IFS10 UPD10.

 

However, the authorization setup is done with groups, for example: PROJECTS.

Now the email is sent to all members within the group PROJECTS when a purchase order needs to be authorized.  I see 2 ways to have it sent to the specific authorizer (= project manager).

  1. either a possibility to add a field to the event (if possible, how to do?)
  2. change the field MESSAGE_TEXT and add information there (if possible, how to do?)

If neither of the above is possible, can anyone tell me where to find the original event in pl/sql so i can create a copy and change that ?

 

thank you in advance for your help.

icon

Best answer by Randini Jayasundara 18 June 2021, 08:42

Hi @Adriaan 

Sorry for the delay. Let me explain the solution in the attached thread and how it can be used in your scenario.

Here what you need to do is 

  1. Create a new custom event to send an email to the project manager. Action Type = Email

 

 

  1. Enable the new event and event action.
  2. Disable the existing Event Action (Action Type = Email) of event NEXT_AUTH_PUR_ORDER
  3. Create new Event Action (Action Type = Execute Online SQL) for the event NEXT_AUTH_PUR_ORDER. This will call the event C_SEND_MAIL_TO_PM we created above.

 

  1. Enable the new event action

This new event will be called next time the System Defined event is triggered.

But I’m sorry I do not know the answer for your second question related to the event NOTIFY_NEXT_AUTH. Posting it as a new question would be a good idea.

View original

5 replies

Userlevel 4
Badge +6

Hi @Adriaan 

Please refer below post, the answer and the example link given in the answer.

A similar workaround might be applicable in your scenario as well.

Userlevel 2
Badge +4

Hi Randine, 

thank you for the reply.  What i can use out of it is that unfortunately it's not possible to add information to a system defined event. The solution mentioned in the thread i do not understand and is beyond my technical knowledge.

Userlevel 2
Badge +4

Perhaps you can help me with the next question:  we use consequetive authorization so I activated the ‘notiy next authorizer’ system event.  However, the first authorizer does not get an email since it is not a ‘next’ authorizer.  How can i set the activity to make sure the first authorizer gets a mail notification?

 

Thank you in advance.

Userlevel 4
Badge +6

Hi @Adriaan 

Sorry for the delay. Let me explain the solution in the attached thread and how it can be used in your scenario.

Here what you need to do is 

  1. Create a new custom event to send an email to the project manager. Action Type = Email

 

 

  1. Enable the new event and event action.
  2. Disable the existing Event Action (Action Type = Email) of event NEXT_AUTH_PUR_ORDER
  3. Create new Event Action (Action Type = Execute Online SQL) for the event NEXT_AUTH_PUR_ORDER. This will call the event C_SEND_MAIL_TO_PM we created above.

 

  1. Enable the new event action

This new event will be called next time the System Defined event is triggered.

But I’m sorry I do not know the answer for your second question related to the event NOTIFY_NEXT_AUTH. Posting it as a new question would be a good idea.

Userlevel 2
Badge +4

Hello Randini,  thank you for the explanation ! 

This looks very good and I'm going to try to emplement this. 

My second question is not needed anymore once a custom event with my own parameters will be created.

 

Best regards,

Adriaan

Reply