scottdurow / dataverse-ify

Easily call the Dataverse WebApi from TypeScript using SDK style types, with a NodeJS implementation for integration testing.
MIT License
59 stars 16 forks source link

ExecuteMultiple CRUD example #18

Open kayetter opened 2 years ago

kayetter commented 2 years ago

Could you provide an example to update multiple records.

I work in laboratory software development and have a test case where a customer will submit an order that has multiple associated samples destined for laboratory testing. I was trying to create a ribbon button on the order where a user could set all the sample records to received. I need to

  1. Retrieve all the samples associated with my order record and,
  2. Update three fields on all the sample records: Received (Boolean), ReceivedOn( current datetime), ReceivedBy(currentuser) as well as updating the statusreason to “Received”.

I could not find an example in the documentation so am a bit stuck.