Hi Everyone,need to move a server action/API from one module to another. Could anyone please help
Hello again saif,
So you can't access the table (that is inside module 1) from module 2, is that it?
If so, you just need to define the Public property from your table/entity as Yes:
If you want to reuse the Server Action from one module in another modules, you can also define it as Public.
After this, just add them as a dependency and they will be available for you to use them.
Kind regards,
Rui Barradas
Hello there Saif,
Hope you're doing well.
What exactly are you trying to achieve? :)
You can cut the Server Action in one module and paste it in another module. You can also do that with the logic and the inputs/outputs of the Server.
Service Studio allows you to Cut, Copy, Paste and Delete objects.
Hello
I have created a server action in one module and i need to use it to update values inside a table. the able is in module 1 while the server action is in module 2.
Module 2-
Module 1
Hi @saif sheikh,
As per my understanding, you just want to use your server action in another Module, So for that you have to make your server action as a PUBLIC and if any aggregate or Entity Action you are incorporating make it PUBLIC too. And then Go to your required module and do Manage dependencies which is on left side. Then search your Module name in which server action is there and use it in Module 2.
I hope this is your requirement. If it works then mark this as a Solution
Thanks
Hello Tanisha,
That information was already been shared in the thread. Before answering, please consider to read previous answers in order to avoid redundant information.
Managed to get the server action to other module. but unable to do it for entity. Could you please suggest what i would need to do to get the entity table from one module to another.