Skip to main content

Adding back column with same ID after deletion

  • April 13, 2024
  • 5 replies
  • 149 views

If a column with a specific id was deleted (currently in trash), will it not be possible to add a column with same id using mutation and api?

5 replies

dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • April 13, 2024

Try it! Then add a comment with the mutation and whether it worked. Share your findingsšŸ™ƒ


  • Author
  • Participating Frequently
  • April 13, 2024

Hey! I tried it. Only getting graphql error that the ā€œcolumn id is invalidā€. I’m guessing the logic is that since the column is in trash and can be added back, same id is not being allowed. Not sure though.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 14, 2024

Hello there @manishaghosh,

Once an ID is used for a column, it can not be used again (even if the column is deleted).

Cheers,
Matias


dvdsmpsn
Forum|alt.badge.img+1
  • Participating Frequently
  • April 14, 2024

Creating column ids as GUIDs or incrementing integers from the start would stop all this confusion.

I’ve read several posts on here where people think that the column id means something, whereas in reality, it’s just an id that happens to initially look similar to the column name/title on creation.

See also:


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • April 14, 2024

Thank you for the feedback @dvdsmpsn !

It will be shared with the team 😁