Service Action
Application Type
Reactive, Service

Hi All,


I have a service action which i want to use in another module but as a function just like we can do with server actions. Currently i have made a server action in my consumer module and using service action(from producer module) in it, and using it as a function.

Doing this way am i still maintaining a weak dependency ?

Also is this the correct way of doing this ?


Regards,

Shivangi

mvp_badge
MVP
Solution

Hi Shivangi,

As you probably already noticed a Service Action has no Is Function property that you can set to True.

What you can do in your consumer module is create a Server action that calls your Service action from the producer module. The created Server action can have its Is Function property set to true.

Calling a Service Action is always a weak dependency.

Regards,

Daniel

Hi Daniël,

Thank you for your response :) 



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.