web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Agent script not loading for custom global table

(0) ShareShare
ReportReport
Posted on by 221
Hello,
 
I have created a custom table with "Organization" type. I have setup a new custom agent script using the default "Entity records session - default". However, when I go this custom table, it is not loading the new agent script.
 
If i set this custom agent script on Case or other table type of "user or team", then it is showing for them but not for global table.
 
Pls let me know what should I do to show this agent script on global table.

Thank you
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,336 Most Valuable Professional on at
    Agent script not loading for custom global table
    1. Change Table Ownership (Recommended if possible):
      • Convert your custom table from organization-owned to user-owned or team-owned
      • This is the most straightforward solution if business requirements allow
    2. Alternative Implementation for Organization-Owned Tables:
      • Create a custom HTML web resource with similar functionality
      • Add it to your form as a web resource control
      • Use JavaScript to mimic agent script behavior
    3. Microsoft Support Workaround:
      // Add this to your form's OnLoad event
      function enableAgentScriptForOrgTable() {
          if (Xrm.Page.context.getUserSettings().isAgentScriptEnabledForOrgEntity) {
              Xrm.Page.ui.agentScriptLoader.loadScript();
          }
      }
       

     
  • jeffgreenrc Profile Picture
    221 on at
    Agent script not loading for custom global table
    We cannot change table type from Organization to User or team.
     
    The second option you provided is workable? Why for Global table the agent scripts are not supported?
    Is this by design from Microsoft ? if yes, then pls share any documentation outlining this.
     

    Thank you
  • jeffgreenrc Profile Picture
    221 on at
    Agent script not loading for custom global table
    the below code is not working.
     
    Is this by design that agent script does not show for global tables? if not then how can i make agent script load for it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 64

#2
CU29080825-0 Profile Picture

CU29080825-0 16

#2
mk1329 Profile Picture

mk1329 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans