Skip to main content
Question

Next gen .NET SDK metadata update for multiselect

  • December 2, 2024
  • 0 replies
  • 18 views

I am unable to figure exact syntax for mutiselect field to update metadata. When I attempt following then it throws error

await boxService._client.FolderMetadata.UpdateFolderMetadataByIdAsync(folderId: "123", scope: UpdateFolderMetadataByIdScope.Enterprise, 
        templateKey: "arms", requestBody: Array.AsReadOnly(new[] { new UpdateFolderMetadataByIdRequestBody() { Op = UpdateFolderMetadataByIdRequestBodyOpField.Replace, Path = "/doctypes", Value = "[\"test\"]" } }));

 

Error:

Encountered invalid value for template field key=doctypes

 

I have no issues in using CreateFolderMetadataByIdAsync though.

 

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings