web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How do I refresh the schema for an AIF outbound service

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Try generating CIL

  • Community Member Profile Picture
    on at

    Thanks for the reply. I did generate CIL(not full) but no help.

  • Suggested answer
    jayh Profile Picture
    410 on at

    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)));
    }
    


  • Ashwin Jugurnauth Profile Picture
    411 on at

    Try to deactivate the service first and refresh AOT elements.

    Cheers,

  • Douglas Noel Profile Picture
    3,905 on at

    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

  • Community Member Profile Picture
    on at

    Thanks for your advise, I tried, nothing changed.

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans