Example of Related Record Add
Consider the following example: adding a related record where street name is "Rockford", customer type is "IT", company type is "IT PVT", and the date of birth is "03/10/1986" in the "Company" and "Customer" repositories.
Example - Request
{
"record": {
"repositoryName": "Company",
"productId": "REC1",
"productIdExt": "REC1",
"attributes": [
{
"name": "Name",
"value": "TIBCO"
},
{
"name": "Address",
"value": "IL USA"
},
{
"name": "Street",
"multivalues": [
"11th St",
"Rockford"
],
"multivalue": true
},
{
"name": "Website",
"value": "https://www.google.co.in/"
},
{
"name": "Rating",
"value": "10.10"
},
{
"name": "CompanySource",
"value": "IT SOURCE"
},
{
"name": "CompanyRating",
"value": "9"
}
],
"relationships": {
"companycustomer": [
{
"relationshipAttributes": [
{
"name": "RCustomerType",
"value": "IT"
},
{
"name": "RCompanyType",
"value": "IT PVT"
}
],
"targetRecord": {
"repositoryName": "Customer",
"productId": "REC2",
"productIdExt": "REC2",
"attributes": [
{
"name": "CustName",
"value": "daniel reichard"
},
{
"name": "CustAddress",
"value": "UK"
},
{
"name": "DOB",
"value": "03/10/1986"
},
{
"name": "Salary",
"value": "45000"
},
{
"name": "Gender",
"value": "M"
},
{
"name": "CustRating",
"value": "7"
}
],
"relationships": {
},
"deleted": false
}
}
]
},
"deleted": false
}
}
Copyright © Cloud Software Group, Inc. All rights reserved.
