Hi Paolo,
As listed in the Environment related functions page, you may make use of below built-in functions:
- GetEntryEspaceId() Returns the identifier of the module that is processing the web request.
- GetOwnerEspaceIdentifier() Returns the identifier of the module that owns the element that is being processed.
Regards,
Swatantra