Skip to main content
Solved

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

  • February 24, 2023
  • 2 replies
  • 310 views

Forum|alt.badge.img+9
  • Sidekick (Partner)
  • 85 replies

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?

Best answer by Rifki Razick

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

 

View original
Did this topic help you find an answer to your question?

2 replies

Rifki Razick
Hero (Employee)
Forum|alt.badge.img+9
  • Hero (Employee)
  • 72 replies
  • Answer
  • February 25, 2023

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

 


Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • 85 replies
  • February 25, 2023

Thanks for the clarification Rifki.
Much appreciated.

Cheers
Gayan


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings