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

231
Views
En dynamics-web-api, cuando se usa lote, ¿cómo usar content-id como clave de una solicitud de actualización?

Paquete Npm: https://www.npmjs.com/package/dynamics-web-api

Versión: 1.6.12

 this.dynamicsWebApi.startBatch(); this.dynamicsWebApi.createRequest({ collection: 'accounts', entity: createdAccountData, contentId: '1', }); this.dynamicsWebApi.createRequest({ collection: 'contacts', entity: { ...contactData, 'parentcustomerid_account@odata.bind': '$1', }, contentId: '2', }); this.dynamicsWebApi.updateRequest({ collection: 'accounts', key: '$1', entity: { 'aw_Dashboard_Contact@odata.bind': '$2', }, }); await this.dynamicsWebApi.executeBatch();

A partir del código anterior, tengo la intención de crear una cuenta, un contacto que se vincule a la cuenta y, finalmente, actualizar la cuenta para vincular al contacto.

CreateRequest 1 y 2 podrían ejecutarse correctamente, pero updateRequest falló con el mensaje de error "DynamicsWebApi.executeBatch requiere que el parámetro request.key sea del tipo Cadena que represente GUID o clave alternativa"

Mi pregunta es si hay alguna forma de usar contentId 1 como clave de updateRequest.

about 4 years ago · Santiago Gelvez
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!