Skip to content

Instantly share code, notes, and snippets.

@ealsur
Created January 6, 2020 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ealsur/70955bfdeff1b935d827f67d08ac65d0 to your computer and use it in GitHub Desktop.
Save ealsur/70955bfdeff1b935d827f67d08ac65d0 to your computer and use it in GitHub Desktop.
TransactionalBatch - View response
using (batchResponse)
{
if (batchResponse.IsSuccessStatusCode)
{
TransactionalBatchOperationResult<ParentClass> parentResult = batchResponse.GetOperationResultAtIndex<ParentClass>(0);
ParentClass parentClassResult = parentResult.Resource;
TransactionalBatchOperationResult<ChildClass> childResult = batchResponse.GetOperationResultAtIndex<ChildClass>(1);
ChildClass childClassResult = childResult.Resource;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment