Forums
Create Lead (v2) with Process and Stage
Greeting Team,
I require to create a lead (v2) starting with a particular starting process and stage. I am utilizing the persistent ID and number combination for the assignment as I am storing these in our local API database. The following creates the lead without error; however, does not assign the associated process and stage. Please advise? (example data for security reasons - key are valid). Thanks, Joe
--
{
"Lead": {
"Data": {
"Key": {
"Value": null,
"ID": null,
"Number": null
},
"FirstName": "Joseph",
"LastName": "Test",
"Email": {
"Address": "",
"Description": "",
"Default": true
},
"Address": {
"AddressLine1": "9999 S. Test Ave.",
"City": "Springfield",
"StateProvince": "UT",
"ZipCode": "99955"
},
"Phone1": {
"Default": true,
"Number": "",
"Description": "",
"Extension": ""
},
"Udf/$TYPEID(814)": "",
"Udf/$TYPEID(574)": "Chris",
"Udf/$TYPEID(518)": "Test",
"Udf/$TYPEID(727)": "",
"Udf/$TYPEID(519)": "(314) 555-5963",
"Udf/$TYPEID(728)": "2",
"Udf/$TYPEID(729)": "2",
"Udf/$TYPEID(123)": null,
"Udf/$TYPEID(704)": "11",
"Udf/$TYPEID(517)": "Julie Test",
"Udf/$NAME(SUBMITTED DATA\1 App User First Name)": "Julie",
"Udf/$NAME(SUBMITTED DATA\2 App User Last Name)": "Test",
"Udf/$NAME(SUBMITTED DATA\3 App User Company)": "ACME Home Care",
"Udf/$NAME(SUBMITTED DATA\4 App User Branch Location)": "Springfield",
"Udf/$TYPEID(256)": "ACME Home Care-Springfield",
"Udf/$NAME(CLIENT FIELDS\Comments)": "",
"ProcessSetup": {
"Key": {
"ID": "260112000000000217726PS",
"Number": 0
}
},
"ProcessStageSetup": {
"Key": {
"ID": "260112000000000217726PS",
"Number": 1
}
},
"Udf/$NAME(SUBMITTED DATA\5 Agency Assignment list)": [ "9996" ],
"Udf/$NAME(SUBMITTED DATA\Process ID)": "200016906",
"Udf/$NAME(SUBMITTED DATA\Form ID)": "19",
"Udf/$NAME(SUBMITTED DATA\Entry ID)": ""
}
},
"Compatibility": { "LeadObject": "1.3" }
}
