GetEntryEspaceName() returning different module name

Hi,

I am calling server action from module1 and the server action is defined in module2.

I am generating the url through this server action but why I am getting "module1" espace name instead of module2.

Regards,

Virat

mvp_badge
MVP
Solution

Hi Virat,


GetEntryEspaceName returns you the the eSpace name where the request started which was module1.

If you want to get the module that owns the element, you might want to use the GetOwnerEspaceIdentifier or GetOwnerURLPath functions:



Hope it helps.


Regards,
João

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