Try our conversational search powered by Generative AI!

Convert custom property from string to longstring

Vote:
 

I've made the misstake of making one of my properties that should be longstring, string instead. I've tried simply changing the propertytype to longstring but then all existing properties become empty. Is there anyway I can convert it?

#36245
Jan 21, 2010 11:26
Vote:
 

Probably the quickest way to accomplish this would be to create a new property for the longstring property type and add it to the affected PageTypes, then you make a script that loops your pages and copies the string value of the "old" property to the new one.
Then you can delete the old property and rename the new one to whatever the name of the old was.

#36557
Feb 03, 2010 9:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.