Exercise 1: Customer Accounts and Activities
In this exercise, store customer and related activities details.
Requirements
The objective is to build a very basic customers and activities tool using API and Entities. This solution will be used to store, access and manage customer information. Some of the key capabilities will offer storing, accessing and management of:
customer accounts data
activities performed on and for the customer
Solution
Create the following entities:
“UserName_Acc_customers”: Stores customer accounts details.
“UserName_Acc_Activities”: Stores customer activities details.
Create an API to create and store the records in the relevant entities.
Select the API Method as “POST”.
In the Entity “UserName_Acc_customers”:
The value for the “Customer_Value” field provided by the user is replaced with the value “0”
The value in the “Rating” field provided by the user is replaced with the “1”.
Define a One-to-Many Relation (1 => M) between “UserName_Acc_customers” and “UserName_Acc_Activities”. This defines that one customer record in the former entity (customer accounts) can be associated with multiple records in the latter entity (customer activities), since one customer can have multiple activity records.
On encountering text such as the following: {username}, replace it with your user initials
Last updated