Good day everyone.
I've searching around but i still can't manage to get the machine name of a user using the CRM web application, our company has a IFD deployment, and i need to keep track of the logged user and the machine name where the user is logged. but i don't know how to achieve to goal of getting the user's machine name and send it on the save action of a record,
Has anyone faced that requirement before?i used the code snippet below to give a try, it's the only thing i've found so far but it just throw me a "Automation Server can't create object" even if i set the security of the iexplorer to the lowest setting.
i tried using this code in the onload event of an opportunity just to give a try.
function create()
{
var net = new ActiveXObject("wscript.network");
alert(net.UserDomain+': '+net.ComputerName);
}
create();
Has anyone any other way to achiveve this?
Any help, idea, tip or trick would be greatly appreciated!
Thanks in advance!
*This post is locked for comments
I have the same question (0) Just in case someone get into this thread looking for a solution.
The code snippet that i posted is ok, but a little more Internet explorer configuration was needed in order to get the rights to execute it from crm.
On the client computer, u need to configure in Internet explorer >>tools>>internet options>>Security
1)First , be sure that the crm site is in the trusted sites.
2)Then go to Custom level and ENABLE this option: "Initialize and script ActiveX controls not marked as safe for scripting"
Once done the script should work correctly and get you the machine name of the client, so u can manage to save it in the form or do whatever u want from there.
Hope it helps.
Cya!
Community Member
2
Christoph Pock
1