Created
January 6, 2020 18:40
-
-
Save ealsur/70955bfdeff1b935d827f67d08ac65d0 to your computer and use it in GitHub Desktop.
TransactionalBatch - View response
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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