ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Question] Renaming extension fields.

Open sirhc101 opened this issue 7 years ago • 3 comments

I need to rename two fields of my extension due to warning AL0468 (Length of the table field name must not exceed 30 characters.) Now I simply have the question: How?

I first thought simply rename it because field id is still the same, but it does not work properly. The extension deployment status list is showing me, that it failed and it identified a remove action. Well, then I thought maybe I need to use the Table Sync. Setup and Data Upgrade Mgt. codeunit, but the pre-compiler is decline this due to my Cloud development target.

So what is the proper way to rename a field? I read something with using schemaUpdateMode set to recreate instead of synchronize, but this would delete all extension data, right?

Thanks in advance.

sirhc101 avatar Oct 02 '19 17:10 sirhc101

You can use "schemaUpdateMode": "ForceSync", this will not delete the extension data.

And regarding the warning AL0468, I suppose you are assigning some value to the field from some other variable or fields, which is giving you a warning.

ashikivor avatar Oct 15 '19 14:10 ashikivor

@ashikivor How do I do this in a productive cloud environment, not a sandbox or a docker container!?

AL0468 is just a warning, that the field name is exceed 30 characters. It's not because of an assignment or so. Just because of the name which is "to long"

sirhc101 avatar Oct 17 '19 16:10 sirhc101

Your request is not related to the AL application extensibility. Please post it at https://www.yammer.com/dynamicsnavdev/ where the wider community may give you a valid answer.

StanPesotskiy avatar Feb 18 '22 09:02 StanPesotskiy