how an utility application connects with all three deployment types of CRM - dynamics-crm-2011

I am working with an utility application which has user authentication(i.e. it takes username password from users as input). Previously I worked with CRM online. Now requirement is this utility should be able to connect all three deployment types of CRM (i.e. Onpremise, Online, IFD).I am not sure how to do it. I was using crmservice.cs and deviceidmanager.cs for connection with CRM.
From other online resources I found that in connection string if I add Authentication Type="Integrated"/"AD"/"SPLA"/"Passport" , it should work.
So If I write my connection string like
connectionString="Authentication Type="Integrated";Data Source= LINE500\sage;Initial Catalog=cs3live; Integrated Security=false; User Id=XXXXXXXX;Password=XXXXXXXX"
Is this gonna work? FYI, I have only CRM online trial account to verify my code.So I need your help on this.
Thanks.

a CRM Online environment can use Windows Live ID or Office 365 authentication, DeviceID and DevicePassword are necessary only when connecting with Windows Live ID credentials. So you need to know which authentication type is in use in your CRM.
To be able to connect to different environments I suggest to use the Simplified Connection, you can find more information here:
https://stackoverflow.com/a/15930366/2191473
and here:
Sample: Simplified Connection Quick Start using Microsoft Dynamics CRM

Related

How do you Authenticate a Logic app microsoft.web/connections connection with code

I have a logic app with an Office 365 connection. Of course I can authenticate this in the portal manually but I would have to do this every time I deploy from my deployment automation pipeline.
I have found a post of this but it is no longer available:
Authenticating office365 logic app connector with PS
The link that is no longer available
Here is what I mean in the portal:
Any idea how I automate this with say Powershell or az clie or something else?
thanks
Russ
This question was answered by Microsoft:
Issue description:
You are unable to change the user name for the Office 365 API connection
Scope definition:
To provide assistance on the above issue with Office 365 API connection
Troubleshooting steps:
I tried the repro of the scenario and tried the below options
Used incognito window- did not help
Tried creating a new API connection with the new user- did not help
Logged out of the office 365 suite- did not help
Logged in to the machine with the new account- it worked
Resolution:
Based on the observations, I had discussions with the experts, and it seems the connector currently can only take windows AD authentication and hence the issue.
Product group has this feature update in the backlog and would be updating the connector in coming days, we do not have an ETA yet on this.
Workaround option:
Use portal from a server which doesn’t need domain user login. Login
to the server with non-domain user
Use Mozilla Firefox browser- this
has worked for few customers.

Authenticating Excel Task Pane app to CRM Online

I would like to write an Excel Task Pane app to interact with CRM Online - to take data from the Excel worksheet, process it and push it into a CRM entity record. My Excel users are on Office 365, as is CRM Online (obviously). We are using ADFS 2.0.
The specific problem I am experiencing is that I do not know how to get authentication to work for the Task Pane app: specifically, to the OData endpoint via JavaScript. Authentication is not my area, so I don't know how to precisely phrase this next requirement, but as we are using Office 365/CRM Online/ADFS then I need to use the logged-in user's Windows AD credentials to authenticate the request.
As far as I can tell, it is not possible to authenticate the Task Pane app directly with CRM Online, and I would like to know if that is known to be true, and if not what method(s) I can use.
I do know that there is a hack for indirect authentication published by a couple of people (http://survivingcrm.com/2013/12/connecting-crm-online-odata-feed-excel-2013-power-query/ or http://www.crmconsult.co.uk/connecting-to-crm-20112013-with-odata-in-excel-2013/) which authenticates the user via the CRM plug-in and then allows other OData connections to succeed - but it doesn't work for me, and I'm averse to rolling out functionality to users which relies on back-door methods.
In the end, I ended used using SOAP in VBA instead of oData in the Task Pane, which meant I was able to use Jason Lattimer's hard work from http://jlattimer.blogspot.co.uk/2015/02/soap-only-authentication-using-vba.html - I don't think there is any way I would have figured out the Authentication piece without that post, so many thanks to him.

Using Office 365 login as identity provider for my web app

I want my users to be able to connect with same email/pass combination in reporting system for my company as they use for Office 365 and outlook.
Reporting system is in my server, simple PHP engine and i don't want to mess with double login info for every user and for every system. So far i couldn't find any solution how to use O365's login/session. So i wonder if it is possible at all and how?

How to create a new user on Dynamics CRM Online through calling APIs

I want to design an application to sync user information between local system and CRM online. I found we can't create user in CRM online through APIs directly as CRM on-premise. System said we only can add user through office 365 admin portal. But I have no idea about how to use office 365 APIs to create CRM online user. Did you guys encounter the situation before? Please help me, thanks!
Ok, let me answer my question. Right now if we want to operate Dynamics CRM Online User or License information, we need to operate Active Directory Graph Service associated with CRM Online. This Service is a web api based service. We can get the example code on "http://visualstudiogallery.msdn.microsoft.com/7e947621-ef93-4de7-93d3-d796c43ba34f", and current there is one helper library can be used you guys can download it on http://code.msdn.microsoft.com/windowsazure/Windows-Azure-AD-Graph-API-a8c72e18.

How to Connect to CRM Dynamics Online Odata endpoint LinqPad?

I'm able to connect to self-hosted CRM sites just fine with the default Odata driver within LinqPad. The URI I use in the "WCF Data Services (OData) Connection" dialog for self-hosted is in the format http://MyServer.com/MyOrgName/xrmservices/2011/OrganizationData.svc. The user name is in the format "domain\username".
When I attempt to follow the same format for an CRM Online instance, it doesn't work.
I'm guessing it's either because of the https, or the windows live credentials, but don't know what steps to take to fix the problem...
Please note, I want to use the odata provider, not the CRM 2011 provider. The odata provider gives me the URL to retrieve the data which is extremely helpful for javascript. The CRM 2011 provider gives the fetch XML, which isn't what I want to use in this case...
I contacted LinqPad and they said they don't currently support Windows Live Authentication. I'm guessing that one would have to write a plugin and use the logic from this page to handle the authentication issues.

Resources