Solved

IFS Cloud 22R2: Calling CRUD methods in a service package(SVC) from another Custom Service package

  • 24 February 2023
  • 2 replies
  • 157 views

Userlevel 3
Badge +9

Hi All,

 

I need to create a Custom REST API and this API needs to call several other REST APIs.

For example new custom API is Test_Handling_SVC.

My question is , do we normally call CRUD methods in standard SVC packages from other SVC packages (say custom SVC) or should we call standard New__ , Modify__ method calls instead.
e.g.
Do we call method 
Prepare_Work_Order_Handling_SVC.CRUD_Create() 

OR

Active_Sepatate_API.New__()

 

What is the recommended IFS standard?

icon

Best answer by Rifki Razick 25 February 2023, 08:34

View original

2 replies

Userlevel 4
Badge +9

Hi @GaSoGB 

The CRUD methods in an SVC package is only meant to be used within the corresponding API call flow and not from another API context.

Please follow the standard code flow as designed in the Core code, where calls are made from the SVC to relevant entity DB APIs and not to other SVCs.

Regards,

/Rifki

 

Userlevel 3
Badge +9

Thanks for the clarification Rifki.
Much appreciated.

Cheers
Gayan

Reply