Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

312
Views
El parámetro __metadata no existe en el método GetByTitle cuando intento insertar una nueva fila en una lista de SharePoint

Estoy trabajando en una aplicación en React.js, que envía datos desde un formulario HTML a una lista de SharePoint mediante el método POST. Desafortunadamente, aparece el error "El parámetro __metadata no existe en el método GetByTitle". Ya revisé este hilo , pero no ayudó.

Aquí está mi código:

 send = () => { const url = "https:/myspsiteaddress/_api/web/lists/getbytitle(%27SkillsList%27)" var newItem = { '__metadata': {'type': "SP.Data.SkillsListListItem"}, Title: 'Sample Title', Choice2: this.state.screen1Skills } $.ajax({ url: "https://myspsiteaddress/_api/contextinfo", type: "POST", headers: { "accept": "application/json;odata=verbose", }, success: function(_data) { var postDigest = _data.d.GetContextWebInformation.FormDigestValue ? _data.d.GetContextWebInformation.FormDigestValue : $("#__REQUESTDIGEST").val(); $.ajax({ url: "https://myspsiteaddress/_api/web/lists/getbytitle(%27SkillsList%27)", type: "POST", contentType: "application/json;odata=verbose", data: JSON.stringify(newItem), headers: { "Accept": "application/json;odata=verbose", 'Access-Control-Allow-Origin': '*', "X-RequestDigest": postDigest, "X-HTTP-Method": "POST", "If-Match": "*" }, success: console.log('success'), error: function (error) { alert(JSON.stringify(error))} }); }, error: function (err) { alert(JSON.stringify(err)); } }); }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!