cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABSL exceute event only one time

436

Dear Community,

Im calling an external web Service in (Action-EventBeforeSave) to create values automatically for the Business Partner, I want this Action to be called only one time (when we edit the Business Partner for the first time) is that possible ??

Kind regards,

Rami

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Rami.

You can use the method isSet() to check if the instance is new and only assign the value if isSet() evaluates to false.

You can also try the new method GetFromDB(), that will return empty if nothing is stored on the DB, which indicates the instance is new.

Hope it helps.

Answers (1)

Answers (1)

0 Kudos

Hi Rami,

I am suspecting that functionality is supported from SDK based on Data (like BP). Please share if you get during your workout.

I suggest you to define one more element (Ex: indicator) along with BP in BO. Update that element (If already updated = True / Not Yet updated = False) along with BP in BO table. Read that BO values on every new BP update and check that element is True then don't call webservice block of code.

Please let me know if you need in details on the above suggestion.

Rgs

Chandra