Notifications
Announcements
No record found.
I added a column in a table, modified the related query. I also re-registered the related service. But I kept getting the old schema. How could I refresh the schema?
*This post is locked for comments
Try generating CIL
Thanks for the reply. I did generate CIL(not full) but no help.
In the AOT, open the form AifService, and click the Refresh button to update all schemas, or edit the job below to update only the schema for the service you edited (replace VendPayments with the name of the data object class for the query you edited):
static void UpdateSchema(Args _args) { #define.DataObjectClass(VendPayments) AifSchemaGenerator schemaGenerator; SysDictClass serializableClass = new SysDictClass(classNum(#DataObjectClass)); AifServiceGeneratedArtifacts generatedArtifacts=new AifServiceGeneratedArtifacts(); ; schemaGenerator=new AifSchemaGenerator(serializableClass,classStr(#DataObjectClass),'',generatedArtifacts); schemaGenerator.generate(); info(strFmt("Updated schema for data object class %1.",classStr(#DataObjectClass))); }
Try to deactivate the service first and refresh AOT elements.
Cheers,
Hi HuanZ,
I think you are speaking of a standard document service. So you have to update the related ServiceDocument class (the one which uses the query)
This will create the required parmXXXXX methods for the new fields. These are analyzed by the schema generator
Tools/Application Integration Framework/Update Document Service
After that you should be able to see the new field in your schema.
regards
Douglas
Thanks for your advise, I tried, nothing changed.
This works like a charm. Thanks so much!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Priya_K 4
Martin Dráb 4 Most Valuable Professional
MyDynamicsNAV 2