• Alexandre Maeda
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I can not enter values in custom fields for a new Lead by REST api.
I'm using the library jsforce (https://jsforce.github.io/). Salesforce API Library for JavaScript applications.

jf.sobject("Lead").create({Data_de_instala_o__c: form.interesse}, function(err, ret) {
     if (err) { 
         getError(res, err, 500) 
     }

     res.status(200).end()
});
I get the error:
 
errorCode:"INVALID_FIELD"
message:"No such column 'Data_de_instala_o__c' on sobject of type Lead"
name:"INVALID_FIELD"
stack:undefined
Could anyone help me to insert the values for custom fields?

 

I can not enter values in custom fields for a new Lead by REST api.
I'm using the library jsforce (https://jsforce.github.io/). Salesforce API Library for JavaScript applications.

jf.sobject("Lead").create({Data_de_instala_o__c: form.interesse}, function(err, ret) {
     if (err) { 
         getError(res, err, 500) 
     }

     res.status(200).end()
});
I get the error:
 
errorCode:"INVALID_FIELD"
message:"No such column 'Data_de_instala_o__c' on sobject of type Lead"
name:"INVALID_FIELD"
stack:undefined
Could anyone help me to insert the values for custom fields?