---
title: Consuming Salesforce API in Dot Net Applications
description: MVC .Net application can be used to store & retrieve information  automatically through Salesforce API which otherwise can be very tedious task
---

[PhenomᵉCloud Insights ](https://blog.phenomecloud.com/featured-blogs)

# [Consuming Salesforce API in Dot Net Applications](https://blog.phenomecloud.com/featured-blogs/consuming-salesforce-api-in-dotnet-applications)

 Written by [PhenomᵉCloud](https://blog.phenomecloud.com/featured-blogs/author/phenomᵉcloud) | Jul 15, 2015 6:00:00 AM

**Overview**: Salesforce provides Customer Relationship Management (CRM) to help Companies serve their customers in an efficient way.

In real time, we may not work with all the data that was present in the salesforce, and it is also tedious to follow all the connection process to the salesforce every time even for trivial things.

This can be avoided by automating the connection process to the salesforce through MVC.NET, and thus interacting with the relevant salesforce data.

**Application Use case**:

Our application creates Account information in salesforce and retrieves it from salesforce through MVC .NET application.

**Implementation Steps:**

 

-  Now add the below logic to save the Account information to the salesforce by using SOQL (Salesforce Object Query Language) query.
- Below logic checks initially whether we logged in to the salesforce, if not it returns the control back to the user. Else it will create the account information by creating new object of Account class and passing necessary attributes to it.
- Then by using salesforce object, it will create the account information in salesforce with the help of create method.
- On successful Account information creation, it will return the Account ID.

- We can view the Account information that we have created previously in the salesforce by using ‘query’ method of salesforce object, and by passing SOQL query as an argument to it.
- Add the below code to retrieve the Account Information and store it in the Account list object

[PhenomᵉCloud](http://www.phenomecloud.com) is an enthusiastic family of individuals, fervent to make lives simpler through effective use of technology. Our mission is to implement solutions that drives business results. Know more **insights** from our thoughts and experience.

**Contact us** today or call 1-855-978-6816 to talk with us about your business needs.

[View full post](https://blog.phenomecloud.com/featured-blogs/consuming-salesforce-api-in-dotnet-applications)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "PhenomᵉCloud"
  },
  "dateModified" : "2025-02-12T11:37:13.713Z",
  "datePublished" : "2015-07-15T06:00:00Z",
  "headline" : "Consuming Salesforce API in Dot Net Applications",
  "image" : {
    "@type" : "ImageObject",
    "height" : 400,
    "url" : "http://cdn2.hubspot.net/hubfs/1751195/Blogs/Consuming_Salesforce_API_in_.Net_Applications.jpg",
    "width" : 800
  },
  "mainEntityOfPage" : "https://blog.phenomecloud.com/featured-blogs/consuming-salesforce-api-in-dotnet-applications",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60.0,
      "url" : "https://resources.phenomecloud.com/hubfs/PEC%202024/Logos/Phenomecloud_logo_V2.png",
      "width" : 383.47827
    },
    "name" : "PhenomᵉCloud Insights"
  }
}
```