INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS Library/Fields  (Read 486 times)

MrBiff

  • World Citizen
  • ***
  • Posts: 143
MCWS Library/Fields
« on: January 20, 2024, 06:38:28 pm »

Would you consider adding a new field to the output of MCWS' Library/Fields endpoint, that indicates if a field is a User's field?

I just wrote a tool that surveys the usage count of all of the fields in MC, and would like to be able to detect which fields properly belong to MC vs. which are User fields.  Many MC fields are identifiable via their EditType being 'Not editable'.   But many others are not.

Thanks for considering.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1974
Re: MCWS Library/Fields
« Reply #1 on: January 21, 2024, 03:37:28 am »

This would be great for cleaning up obsolete fields from the library
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: MCWS Library/Fields
« Reply #2 on: January 21, 2024, 11:33:03 am »

Do you want an input parameter like "All", "User", etc. and only return the specified fields.

Or do you want the fields to simply have an attribute?

Thanks.
Logged
Matt Ashland, JRiver Media Center

MrBiff

  • World Citizen
  • ***
  • Posts: 143
Re: MCWS Library/Fields
« Reply #3 on: January 21, 2024, 11:40:16 am »

Do you want an input parameter like "All", "User", etc. and only return the specified fields.

Or do you want the fields to simply have an attribute?

Having the attribute would be better.  I can make one call, and filter for the occasion.

Thank you.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42028
  • Shoes gone again!
Re: MCWS Library/Fields
« Reply #4 on: January 22, 2024, 07:35:28 am »

I'll make a "Type" attribute.  It has User, SavedInTag, and DefaultSearchField now.  We can add more if you want.  Thanks again.
Logged
Matt Ashland, JRiver Media Center

MrBiff

  • World Citizen
  • ***
  • Posts: 143
Re: MCWS Library/Fields
« Reply #5 on: January 25, 2024, 09:28:52 pm »

I have 161 of 485 fields with no value.

It appears that Type is not set if the field is not User, SavedInTag, or DefaultSearchField.  Am I interpretting this correctly?
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 143
Re: MCWS Library/Fields
« Reply #6 on: January 27, 2024, 08:01:03 pm »

This is working well, thank you.
Logged
Pages: [1]   Go Up