Skip to main content
Solved

Box CLI Commands Options (Fields and Extra Fields)

  • November 29, 2023
  • 1 reply
  • 209 views

Hi,


When I use the metadata-query command and try to add more options to query more data about the file creation date using the Fields option or the Extra-Fields option, no results show up, only file name and file id


Here is the command box metadata-query enterprise_******.department 1736501103 --fields=created_at

----- File 1342427526557 -----

Type: file

ID: ‘1342427526557’


Also need to know the list of options that I can use under Fields and Extra-Fields as the Box CLI is not showing any help or examples for it.


Thanks

Best answer by CodeBoxSeb

Welcome to the forum @user711 🙂


I think that created_at is an extra-field, not a field.


Can you try the following :


box metadata-query enterprise_******.department 1736501103  --extra-fields type,id,created_at


I would recommend you to use this documentation :



You’ll find many examples.

View original
Did this topic help you find an answer to your question?

1 reply

CodeBoxSeb
  • Participating Frequently
  • 58 replies
  • Answer
  • November 30, 2023

Welcome to the forum @user711 🙂


I think that created_at is an extra-field, not a field.


Can you try the following :


box metadata-query enterprise_******.department 1736501103  --extra-fields type,id,created_at


I would recommend you to use this documentation :



You’ll find many examples.


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