<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get tenant from scripting in Fusion Manage Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/9985679#M1174</link>
    <description>&lt;P&gt;Is there a way to check the tenant with scripting? I have some integrations that will run in our sandbox tenant if I refresh it with the production version and forget to turn them off. I would like to write some validations in to make sure that it won't run if the tenant is the sandbox so I, or someone else, doesn't need to manually turn them off every refresh.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 20:33:33 GMT</pubDate>
    <dc:creator>bryce_crawford</dc:creator>
    <dc:date>2021-01-07T20:33:33Z</dc:date>
    <item>
      <title>Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/9985679#M1174</link>
      <description>&lt;P&gt;Is there a way to check the tenant with scripting? I have some integrations that will run in our sandbox tenant if I refresh it with the production version and forget to turn them off. I would like to write some validations in to make sure that it won't run if the tenant is the sandbox so I, or someone else, doesn't need to manually turn them off every refresh.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 20:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/9985679#M1174</guid>
      <dc:creator>bryce_crawford</dc:creator>
      <dc:date>2021-01-07T20:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009410#M1175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, I have created a library script where I have defined some parameters:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var tenant = "Production";
var tenantName = "https://mytenant.autodeskplm360.net"; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call this library script when I need to use one of its parameters. For example, I have an action script checking if it is our production or our sandbox and do somehting different depending the situation (update the Test or the Prod ERP server). I use the parameter "tenantName" to send hyperlink in the email created in different action scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that you need to do is when you migrate your production data to your sandbox is to update this library script with the correct values.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 10:52:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009410#M1175</guid>
      <dc:creator>PLM-Sylvain.Bailly</dc:creator>
      <dc:date>2021-01-18T10:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009833#M1176</link>
      <description>&lt;P&gt;No, I never found a way to identify automatically what tenant you script is running on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps Autodesk could the tenant ID could be please injected into the scripting session, along with userID, dmsID, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using some global variables in a function, or even a Tenant Config workspace to hold tenant name, is the way to go, as per the other suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009833#M1176</guid>
      <dc:creator>philipfrench</dc:creator>
      <dc:date>2021-01-18T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009993#M1177</link>
      <description>&lt;P&gt;In 2018 I have created an utodesk idea on the forum to have this feature:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/fusion-lifecycle-ideas/check-tenant-name-on-script/idi-p/7903952" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/fusion-lifecycle-ideas/check-tenant-name-on-script/idi-p/7903952&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you can vote for it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:55:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10009993#M1177</guid>
      <dc:creator>PLM-Sylvain.Bailly</dc:creator>
      <dc:date>2021-01-18T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10010129#M1178</link>
      <description>Just gave it another vote. This seems like an extremely useful feature given how critical integrations are for Fusion with what it is designed to do. I personally don't like leaving anything to chance/user error if at all possible.</description>
      <pubDate>Mon, 18 Jan 2021 15:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10010129#M1178</guid>
      <dc:creator>bryce_crawford</dc:creator>
      <dc:date>2021-01-18T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get tenant from scripting</title>
      <link>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10010309#M1179</link>
      <description>&lt;P&gt;I've been quiet for a while but this is one that has bugged me since the beginning.&lt;BR /&gt;As more qualified colleagues have mentioned, I've not found a way to do this. Similar to what&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/964273"&gt;@PLM-Sylvain.Bailly&lt;/a&gt;&amp;nbsp; mentioned, I created a workspace and set fields(variables) specific to a tenant. Using this method I can have distinct settings such as testing URLs, rules (like don't send an email), assigned to a record in that workspace. However, the possibility of not switching to the correct tenant still exists. But via script you'd be able to query the workspace and see which tenant setting(s) are active and adjust variables without having to touch any scripts. Of course though, this is my implementation and may not be suitable for others. But it's served me well for years now.&lt;BR /&gt;&lt;BR /&gt;~Denner&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 16:52:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manage-forum/get-tenant-from-scripting/m-p/10010309#M1179</guid>
      <dc:creator>john.denner</dc:creator>
      <dc:date>2021-01-18T16:52:49Z</dc:date>
    </item>
  </channel>
</rss>

