Message 1 of 5
action script check tenant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
We have a production server and a sandbox. We have linked the PLM with the ERP and when an item is saved in PLM, we migrate the information to the ERP. The problem is when we put a backup of the production server to the sandbox, this scripts are also copied. So, if we do some tests on the items of the sandbox, the scripts populate the ERP with wrong data. Is it possible to have a check on the tenant in the action script to say: "if the tenant is the one of the production server, do the script. If not, do nothing"?
I don't know how to catch the tenant or the URL of the server. There is not a magic function 'getTenant()'?
Thx
Sylvain