Can I use the Dynamics CRM 4.0 SDK against a hosted IFD system? -
I'm running this code (ambiguous with name and security details). When I do, I get 401 unauthorized. I Credentials are on the user's host server Is it possible against an IFD system?
var token = new CrmAuthenticationToken (); Token. Authentication type = 0; Token.printname = "organ";
CRM service service = new CRM saver (); Service.Url = "https://myorganisation.dynamicsgateway.com/mscrmservices/2007/crmservice.asmx"; Service.CrmAuthenticationTokenValue = Tokens; Service. Credentials = New Network Credentials ("Bob.Switth", "Password", "HOSTEDCRM"); Var Requests = Retrieve New Multiplayer (); Request.Query = new query expression {columnset = new columnset (new string [] {"name"}), EntityName = "account"}; Var response = service.Execute (request);
Yes, it is possible, you only have small pieces, crmauthenticationToken.ExtractCrmAuthenticationToken.
See this great lecture on the Dynamics Forum
Comments
Post a Comment