Hi everyone,
Thanks for your help and suggestions.
I finally found why the PL/SQL default value wasn’t applied when inserting data through OData.
In fact, when using a custom entity and projection, the default value isn’t triggered by a simple POST on the Projection Set.
You must call the Default action of the projection, which initializes the record and executes the PL/SQL default expression.
This endpoint works:
…/main/ifsapplications/projection/v1/CustomProjectionAqEventBusTabNINO2.svc/AqEventBusTabNINO2Set/IfsApp.CustomProjectionAqEventBusTabNINO2.AqEventBusTabNINO2_Default()
This automatically triggers my PL/SQL expression:
DOC_NUMBER_COUNTER_API.FETCH_NEXT_NUMBER('EVENTBUS','-')
After that, the field is correctly populated and no longer remains NULL.
Posting this in case it helps someone else running into the same issue!
Regards,
NINO