Does LPL exist that can be used in conditions to identify the environment a user is working in (e.g. production, trn, dev, etc.)?
Please test using either tenant id or NativeTenantId.
Also: parentcontext.dataarea
It's not simply PRD, TRN, DEV, etc. But it could be parsed down to that.
This will work in FSM anywhere that FinanceEnterpriseGroup is in context and is independent of the length of your tenant name. You could adopt the same thing to GHR/HCM/HR Talent by using HROrganization rather than FinanceEnterpriseGroup.
This will return PRD, TRN, TST, AX1, PP1, etc.