Saturday, May 28, 2016

Building WebAPI Using the Sales force Toolkit for .NET- PART 1 (Interaction with Sales force and ASP.NET WebAPI)

Building WebAPI Using the Sales force Toolkit for .NET- PART I


This article is all about the setting up force.com account so that can interact thought  salesforce’s api in outside applications.


 Part II of this article will perform the CRUD operation by asp.net web api  for contacts.





The Following are the steps:-

  • ·        Signup for sales force developer account.
  • ·         Sign-in.
  • ·         Update your profile.
  • ·         Set/reset security password.
  • ·         Create a connected app.
  • ·         Get consumer key and consumer secret


Signup for sales force developer account:- Register on force.com and get a free 30 days account.
Open force.com and click for “Free trial” and follow all steps


 Sign-in:- open force.com and click login. Provide your user credentials




 Home screen



Update profile:- Navigate to [Your Name] > My Settings 
Set/Reset Security token:- Security token is required along with user password while interacting with api.
Navigate to [Your Name] > My Settings > Personal > Reset My Security Token


Create a connected app:-
Navigate to [Setup] > Apps > Connected app and click for new connected app. Fill the required detail to get key/secret. 


 click add for new connected app and fill all required details. It will accept only secure callback url.



Newly added app                                                                                                                                

Get consumer key /secret:-
Navigate to [Setup] > Apps > Connected app >Your connected app (say MyFirstSalesForceApp) and find key and secret, click on reveal to see consumer secret.




Now got salesforce ac username, password, security token, consumer key and consumer secret so can go for development of ASP.NET Web /api.


-
Sunit