You need to sign in to do that
Don't have an account?
azu.shaik1.3965080575576013E12
i need sample code for the following json structure to create master record along child record in apexrest api in salesforce
i need sample code for the following json structure to create master record along child record in apexrest api in salesforce
i have master detail relation ship between product and attributes objects
{
"mastername": "name",
"masterdescription" : " decription",
"attributes":[{
"attributename": "name",
"attributevalue": "value"
},
{
"attributename": "name",
"attributevalue": "value"
},
{
"attributename": "name",
"attributevalue": "value"
},
..........................
}]
}
Please help me i need create maste record along with multiple child records
i have master detail relation ship between product and attributes objects
{
"mastername": "name",
"masterdescription" : " decription",
"attributes":[{
"attributename": "name",
"attributevalue": "value"
},
{
"attributename": "name",
"attributevalue": "value"
},
{
"attributename": "name",
"attributevalue": "value"
},
..........................
}]
}
Please help me i need create maste record along with multiple child records
I am not sure if this is possible, as we must have a parent id to insert child records.
Any thoughts?
For inserting single object via rest api using java you can refer http://wordgraphs.com/post/854/Creating-objects-in-Salesforce-using-REST-API-from-Java
Thanks,
N.J