Sample: iOS Activity Tracker for Dynamics 365 for Customer Engagement and Web API

Applies to Dynamics 365 for Customer Engagement apps version 9.x

This sample code is for December 2016 Update for Dynamics 365 (online and on-premises) or later. This code can be found at the following location on Github: https://github.com/DynamicsCRM/iOS-Activity-Tracker-for-Dynamics-CRM-Web-API.

Requirements

This sample requires the Azure Active Directory Authentication Library (ADAL) and other packages. These packages are automatically downloaded and installed when you load the project’s solution. For this to work, you must have an active internet connection when loading and building the sample.

In addition to having access to a Dynamics 365 for Customer Engagement organization to run the sample against, you will also need either a Azure subscription for use with Dynamics 365 for Customer Engagement or an ADFS administration account for use with Dynamics 365 for Customer Engagement (on-premises) (IFD).

This code sample targets an iPhone running iOS 9 or later and XCode 7.3 or later using the Swift 2 programming language.

Demonstrates

Activity Tracker app for iOS The activity tracker sample application enables you to connect to your Dynamics 365 organization, query for your contacts, and add a quick activity record related to a contact.

Use this sample’s source code as a starting point to build your own apps that can access the Customer Engagement web services. This sample uses the Azure Active Directory Authentication Library (ADAL), and the Web API using OData v4.

For this code to work, you must first register your app with a supported identity provider ( AD FS or Azure Active Directory). For more information on registering an app with Active Directory, see Walkthrough: Register an app with Active Directory. For more detailed information on the sample and instructions on how to build and run it, see the app’s README.

See also

Write mobile and modern apps
Dynamics 365 on Github
OData.org