
5 respostas

Ok, checking the forums, the answers are mixed.Found this one that seems to think setting a record type on create for a Lead is not possible.https://developer.salesforce.com/forums/?id=9060G000000Bg34QACOr we have an example for Oppty using JSON which seems to use the Record Type name.https://developer.salesforce.com/forums/?id=9060G000000BduFQASOther option, thinking outside the box, could you use that previous code in an before insert trigger and test the lead creation source as the API, or tag a check box/picklist in the lead saying "API created", and fire the trigger on the before insert and the checkbox/picklist?Hope one of those ideas helps.RegardsAndrew