dev tester

dev tester

  • NA
  • 14
  • 5.1k

Issue update field SharePoint Powershell & CSOM

Feb 5 2020 4:26 AM
Hello,
I using CSOM and PowerShell. and I have a libraby who uses a specifique content type.
When I try to update fields from a document who uses this content type, I have some issue on a few fields or it doesn't work.
for exemple when im doing
$myLibrary.Fields a lot of information about each field is return, no one is missing.
When I do $myLibrary.Fields.GetByInternalNameOrTitle('StaticNameWhoWork') that showing me up the informations about the field.
But when im doing this one a none working one $myLibrary.Fields.GetByInternalNameOrTitle('StaticNameWhoDontWork') the information disappears exemple :
  1. TypeDisplayName      :   
  2. TypeShortDescription :   
  3. InternalName         :   
  4. Id                   :   
  5. EnforceUniqueValues  :   
  6. Title                :   
  7. Description          :   
  8. Group                :   
  9. DefaultValue         :   
  10. ValidationFormula    :   
  11. ValidationMessage    :   
  12. FieldTypeKind        :   
  13. TypeAsString         :   
  14. FromBaseType         :   
  15. Sealed               :   
  16. CanBeDeleted         :   
  17. Required             :   
  18. ReadOnlyField        :   
  19. Hidden               :   
  20. Direction            :   
  21. Sortable             :   
  22. Filterable           :   
  23. SchemaXml            :   
  24. StaticName           :   
  25. Scope                :   
  26. Context              : Microsoft.SharePoint.Client.ClientContext  
  27. Tag                  :   
  28. Path                 : Microsoft.SharePoint.Client.ObjectPathMethod  
  29. ObjectVersion        :   
  30. ServerObjectIsNull   :   
So i can't update this one :(
Thanks,

Answers (1)