10 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 3
4 star 0
3 star 1
2 star 0
1 star 6
Compatible with
  • iOS
  • Android

Salesforce SDK 1.4.3.4

Salesforce

Integrate Salesforce into your mobile apps.

Salesforce C# SDK for Xamarin

Build native apps around your Salesforce data.

Give your users the mobile experience they expect, and increasingly demand, from their enterprise apps. Take full advantage of the raw performance and rich functionality native to each platform. Meet compliance requirements by leveraging each platform's trusted-computing features, like OS-managed credential stores.

Do it all using C#.

Key Highlights

  • Create, Update, and Delete SObjects.
  • Run queries written in SOQL.
  • Full-text searching via SOSL.
  • Use the same C# API for iOS and Android.
  • Leverage async/await for keeping your UI responsive, and your code simple.
  • Simple, compact API.
  • Easily create your own strongly-typed domain model classes.

Dive In

// Creates our connection to salesforce.
var client = new SalesforceClient (clientId, clientSecret, redirectUrl);

// Get authenticated users from the local keystore
var users = client.LoadUsers ();

if (!users.Any ())
{
    client.AuthenticationComplete += (sender, e) => OnAuthenticationCompleted (e);

    // Starts the Salesforce login process.
    var loginUI = client.GetLoginInterface (); 
    DisplayThe(loginUI);
} 
else 
{
    // We're ready to fetch some data!
    // Let's grab some sales accounts to display.
    IEnumerable<SObject> results = 
        await client.ReadAsync ("SELECT Name, AccountNumber FROM Account");

    DoSomethingAmazingWith(results);
}

Release Notes

  • 1.4.3.4 ** Bugfixes **
  1. AuthenticationComplete and ForceUserReauthorization
  2. Refresh token bug fix

1.4.3.3
Additions

  • Xamarin.iOS Unified support updated

1.4.3.2
Additions

  • Added suppport for Xamarin.iOS Unified

1.4.x
Additions

  • Added Changes and ChangesAsync for easy retrieval of object change info, which was introduced in v29 of the API.

  • Supports "logout" scenario by calling Client.CurrentUser.RequiresReauthentication = true;.

1.3
Additions

  • Added Describe and DescribeAsync for easy retrieval of object metadata.

Enhancements

  • PlatformStrings.CredentialStoreServiceName is now configurable.

Breaking Changes

  • Search and SearchAsync now return IEnumerable<SearchResult>.
  • PlatformStrings.Salesforce was renamed to PlatformStrings.CredentialStoreServiceName.

Brings assembly version up to 0.9.5003.24683.

1.2
Enhancements

  • Allows Update of non-string datatypes, such as DateTime.
  • Updated the iOS sample to demonstrate mapping the REST API's datetime to System.DateTime.

Additions

  • Now throwing two new exceptions: InvalidClientIdException and JsonParseException.

Brings the assembly version up to 0.9.4987.26579.

1.1
Additions

  • Added Search and SearchAsync for easy SOSL queries.

Breaking Changes

  • Renamed SOQL overloads of Read and ReadAsync to Query and QueryAsync.
  • Renamed extension method parameter @object to sobject to make it easier to use named-parameter syntax.

Brings assembly version up to 0.9.4975.19187.

Write a Review

5 reviews

Reynald Ocampo

This is disappointing! I have been working for hours and still unable to make it work!

Posted on: March 21 / Version: 1.4.3.4
Angus Johnston rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

ditto to the last comment. disappointing from such a large and apparently mobile focused organisation like salesforce.

Posted on: January 27 / Version: 1.4.3.4
Gregory Fein rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

The demo code doesn't work. There are JSON fault issues in the interpreter. Can't use our own login mechanism and forced to use the embedded view.

Just implement the restful services by hand. This library is a mess.

Posted on: October 10, 2014 / Version: 1.4.3.1
Søren Krabbe rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

I might be missing something here, but the login URLs seem to be hardcoded to login.salesforce.com in the component, making it hard to use the component against Salesforce Communities or Salesforce Sandboxes?

Posted on: October 5, 2014 / Version: 1.4.3.1
Pooran Prasad Rajanna rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Please do select following permissions when creating connected app on Salesforce

  • Access and manage your data (api)

  • Perform requests on your behalf at any time (refresh_token)

Full access sometimes does not work.

Posted on: February 3, 2014 / Version: 1.4.3.1