Skip to Content

Who is this blog post aimed at?

This blog post is aimed at developers & partners. The sample code demonstrates how to connect an iOS & Apple Watch app to the SAP Digital for Customer Engagement OData API’s for both Accounts & Opportunities and render the Opportunity data in an animated dynamic bar chart.


What topics does this blog post cover?

  • Setting up a SAP Digital for Customer Engagement trial account
  • Connecting an iOS app to the OData API & displaying Accounts & Opportunities in a list view
  • Connecting an Apple Watch to the OData API & displaying a list of Accounts and a dynamic chart showing Opportunities and their sizes

Sample Code Architecture

C4CAppleWatch.png

Apple Watch.png

What is SAP Digital for Customer Engagement?


SAP Digital for Customer Engagement is a simple, yet powerful CRM solution that’s designed to help smaller sales teams get up and running in minutes, but that delivers many of the same powerful capabilities as our enterprise offering. It can help your team close more deals by enabling them to sell smarter, work more efficiently, and collaborate more effectively.


For more info see: Introducing SAP Digital for Customer Engagement


How to get started?


It is super simple to sign up & free for 30 days!


Sign up for a 30 day free trial


Once you are signed up lets create some sample data!


Step 1

/wp-content/uploads/2015/06/setup_1_730727.png

Step 2

/wp-content/uploads/2015/06/setup_3_730729.png

Step 3

/wp-content/uploads/2015/06/setup_4_730730.png

Step 4

/wp-content/uploads/2015/06/setup_5_730731.png

Lets take a look at the sample code?

The sample code for this tutorial can be found here: https://github.com/SAP/c4c-apple-watch-chart-example


Running the sample project

    1. Clone the Github repo

          git clone git@github.com:SAP/c4c-apple-watch-chart-example.git

     /wp-content/uploads/2015/06/clone_repo_731698.png

     2. Open the Xcode project file called “ODataExample.xcodeproj

          /wp-content/uploads/2015/06/xcode_project_file_731697.png

     3. Run the iPhone Xcode Scheme

          /wp-content/uploads/2015/06/scheme_731708.png

     4. Login with your credentials and click save & test them

          Enter the e-mail address & password you used to sign up for your 30 day trial account.

          Note: You must see “Credentials Valid” in the iPhone app’s Log Viewer in order to confirm everything is connecting correctly.

         Once you see “Credentials Valid” in the log viewer click “View Accounts”

        iPhone.png/wp-content/uploads/2015/06/accounts_731711.png/wp-content/uploads/2015/06/opportunities_731712.png

     5. Running the WatchKit App Scheme

     /wp-content/uploads/2015/06/scheme2_731718.png

What inspired this SCN Blog Post?


Watch the SAP Cloud for Customer: The Perfect Meeting – YouTube video we showcased the Perfect Meeting Apple Watch app at Sapphire 2015 in Orlando!

Thank You

That’s it! Stay tuned for an update for WatchOS 2.0!!

Disclaimer

Public access to the SAP Digital for Customer Engagement OData API is not supported currently. Customers/developers/partners should reach out to SAP for any such requests. For this sample your own login credentials will be used to access the OData API’s

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. SVEN FEURER

    Thanks Damien for sharing this great example. Actually today I wear the Apple Watch for the first time. Nice experience! From my perspective key success criteria: app must be super-easy to use and consume, scenario should be smart and co-existing withphone/tab scenarios, voice support. Kind regards, Sven

    (0) 

Leave a Reply