I am trying to create multiple leads automatically when ticket is saved.
So far I can set subject and priority properties. But I am not sure how to set agent and customer to Lead object. UUID field is marked as read only.
Is my code correct or is there other way?
leanLead.Lead.Name.content = this.Name.content;
leanLead.Lead.PriorityCode = this.ServiceTerms.ServicePriorityCode;
var agent = this.ProcessorParty.PartyKey.PartyID.content; // agent id
//leanLead.ContactPersonUUID.content // read only??
var customer = this.BuyerParty.PartyKey.PartyID.content; // customer id
I am using create method like below. My second question is where I can find API documentation? For example, what fields are mandatory? In the code above, I only assume those 4 fields are required to create a lead.
Thanks in advance