Custom Object 2.0 Rest API Lead Link problem
Hello,
I'm trying to insert a new entry in our custom object created before custom objects 2.0 months ago, but get an error:
"result": [
{
"seq": 0,
"status": "skipped",
"reasons": [
{
"code": "1004",
"message": "Lead not found"
}
]
}
],
"success": true
I have a link field "LeadID" and the id is set correctly, I've tried other leads and i get the same error. My interpretation is that on insert i can't because the API can't find the lead that exists. As an aside, our lead object doesn't have a "LeadID" we have the old "id," is it related? From the API Describe Lead:
{
"id": 39,
"displayName": "Id",
"dataType": "integer",
"soap": {
"name": "Id",
"readOnly": false
},
"rest": {
"name": "id",
"readOnly": false
}
},
We currently have no data, but have campaigns on this object, would it be easier to completely rebuild it using the Custom Objects 2.0?
Relevant details for my problem:
- We have a custom object created months ago before custom objects 2.0
- I added fields using the new custom 2.0 object interface
- There's no data, so rebuilding it is an option