Before you begin

This class uses a Xamarin.Forms application to demonstrate using the Xamarin Salesforce Component. To complete the exercises, you will need a Xamarin development environment setup and a simulator/emulator or a physical device for Android and/or iOS. Read through the Setup Guidelines if you need help with your development environment.

Note: You must also have a Salesforce Connected App in your Salesforce Environment to do the exercises in this course. Please make sure you have your Connected App's Client Id, Client Secret, and Callback URL available before starting this course.

Overview

This course shows how to use the Salesforce Component to authenticate a user, perform CRUD operations, and execute searches.

Objectives

  1. Implement an external app and authenticate a user
  2. Perform CRUD operations on a Standard Object
  3. Create a custom SObject
  4. Perform a Search

Lecture

ENT302 - Using the Xamarin Salesforce Component.

Exercises

Tip: If you are doing these exercises live in a session, make sure to make good use of the instructor, they are online to answer any questions you have!

Exercise materials are available from GitHub. The code can be cloned through a desktop Git client or downloaded directly as a ZIP file.

  1. Implement an external app and authenticate a user
    Exercise
    In this exercise, you will let the user login to their Salesforce account through your app.
  2. Query a Standard Object
    Exercise
    Here you will use SalesforceClient to execute a SELECT query against one of the standard Salesforce objects.
  3. Create a custom SObject
    Exercise
    Now that you have a collection of SObjects in your app, it is time to write a custom wrapper class to make the data easier to work with.
  4. Perform a search
    Exercise
    A SELECT statement can only search within a single table. Here, you will use FIND to run a search across multiple tables.

Additional resources

Salesforce Component on GitHub
Salesforce.com Platform Fundamentals (PDF)