Wednesday, May 10, 2017

Rest Web Service Apex Code Sample (Web Method contains parameters).

Below is a simple example of a rest web service (RestWSSampleWithParam) with a web method (getRestSampleResponse)contains parameters.

/**
 * Rest Web Service Example.
 **/
 @RestResource(urlMapping='/RestWSSampleParamExmpl/*')
global with sharing class RestWSSampleWithParam
{
  @HttpPost
  global static String getRestSampleResponse(String firstName, String lastName)
  {
    return 'Hello! ' + firstName + ' ' + lastName;
  }
}

Data Cloud Part 6: Practical (Ingest Physical Store's Customer details and Sales details)

Hope you have already created your Data Cloud Org and also downloaded the Customer's details and Sales details from previous posts.  Now...