![]() |
VOOZH | about |
This article illustrates using LINQ to access tables within the SAP SuccessFactors LMS via the CData ADO.NET Data Provider for SAP SuccessFactors LMS. To achieve this, we will use LINQ to Entity Framework, which facilitates the generation of connections and can be seamlessly employed with any CData ADO.NET Data Providers to access data through LINQ.
See the help documentation for a guide to setting up an EF 6 project to use the provider.
Enter your data source connection information.
SAP SuccessFactors LMS uses OAuth authentication. Before connecting, you must configure an OAuth application tied to your SAP SuccessFactors LMS account.
To establish a connection, set the following properties:
See the Getting Started chapter of the help documentation for a guide to creating a custom OAuth app and using OAuth.
Below is a typical connection string:
User=username;CompanyId=CompanyId;Url=https://api4.successfactors.com;InitiateOAuth=GETANDREFRESH;
Using the entity you created, you can now perform select commands. For example:
SAPSuccessFactorsLMSEntities context = new SAPSuccessFactorsLMSEntities();
var itemsQuery = from items in context.Items
select items;
foreach (var result in itemsQuery) {
Console.WriteLine("{0} {1} ", result.Id, result.ItemID);
}
See "LINQ and Entity Framework" chapter in the help documentation for example queries of the supported LINQ.
Download a free trial of the SAP SuccessFactors LMS Data Provider to get started:
Download NowLearn more:
👁 SAP SuccessFactors LMS IconRapidly create and deploy powerful .NET applications that integrate with SAP SuccessFactors LMS.