Hi All,
We have implemented a customer portal for a client using Dynamics Portals online. We have to implement a web chat to talk to a bot built using the BotFramework on Azure. The test file given to us by the developer works 100% correctly, however when we implement this on the required pages in the portal we have a strange issue. When you send something to the bot, you will get a response then it will move the line you sent to below the bot response, for example you would expect to see this:
you: Hi
Bot: Hello, how can I help you?
but what we are getting is, you send "Hi" then:
Bot: Hello how can I help you?
Hi
I have managed to source the cause of this to the javascript file "default-1033.bundle.js". This is a default CRM portal file. I have created a static html dump from the the loaded webpage in the browser and then edited that file. If I move the line that loads the default-1033 file to the start of the html instead of the end where it is inserted by CRM portals then the issue goes away and the portal page chat window behaves just like the test page from the developer.
I have tried using JS to force the js for the chat window to only load after default-1033.bundle.js but have not been successful.
Does anyone have a supported way in Portals to change the load order of default-1033.bundle.js?