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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Integrate OpenAI ChatGPT with Finance and operations

(0) ShareShare
ReportReport
Posted on by 406

Hello guys, i want to integrate chatgpt with f&o, is there a documentation explaining step by step how it can be done?

I have the same question (0)
  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    "To integrate" can mean almost anything; you'd need to tell us more about your requirements before we could suggest how to achieve them.

    Nevertheless there are articles you may be interested in, such as ChatGPT by Open AI with Dynamics 365 Finance and operation.

  • D365FO DEV Profile Picture
    406 on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    i saw this documentation you shared, but the steps are not clear.

    I want to add a module on the system named " ASK CHATGPT" and when i click on it, it will open the chatgpt to ask a question. i need to integrate api chatgpt with finance and operations.

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    Then the blog post seems to match your requirements. Please elaborate what is unclear to you. Also, read comments below the blog post and note that you can ask your questions there (if related to the blog post).

    If you don't know to how to create a module in F&O, please create a new thread for that, so here we can focus on ChatGPT.

  • D365FO DEV Profile Picture
    406 on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    what is unclear to me is, he created the table without sharing the fields and its descriptions, the form also.

    and he created a c# class that if i try to add it, it give error " invalid token namespace"

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    The fields are shown here:

    Unfortunately your description (he created a c# class that if i try to add it, it give error " invalid token namespace") isn't detailed enough for me to identify the bug. You'll need to give us more information if you want our help.

  • D365FO DEV Profile Picture
    406 on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    I created the table with the fields, then i added both of the classes, one is written in c# and the second in x++

    after i saved, i got these error messages:

    *Severity Code Description Project File Line Suppression State

    Error Invalid token 'namespace'. RentalManagement (USR) [Rental Management] C:\AOSService\PackagesLocalDirectory\Bin\XppSource\Rental Management\AxClass_ClassOPENAPI.xpp 12

    *Severity Code Description Project File Line Suppression State

    Error The model element was saved with unparsable source code and cannot be used. Please edit the element in Visual Studio to fix the errors. RentalManagement (USR) [Rental Management] C:\AOSService\PackagesLocalDirectory\Bin\XppSource\Rental Management\AxClass_ClassOPENAPI.xpp 0

    *Severity Code Description Project File Line Suppression State

    Error The name 'ClassOPENAPI.OpenAPIQuestion' does not denote a class, a table, or an extended data type. RentalManagement (USR) [Rental Management] C:\AOSService\PackagesLocalDirectory\Bin\XppSource\Rental Management\AxClass_TESTOPENAIQUESTIONS.xpp 19

    *Severity Code Description Project File Line Suppression State

    Error The type or namespace name 'CLASSSOPENAPI' could not be found (are you missing a using directive or an assembly reference?). RentalManagement (USR) [Rental Management] C:\AOSService\PackagesLocalDirectory\Bin\XppSource\Rental Management\AxClass_TESTOPENAIQUESTIONS.xpp 1

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    Now you have some different errors. Review your code in ClassOPENAPI - the compiler complains that the file can't even be parsed. You can't expect us to review your code, because you're the only one who has access to it.

    Also, you didn't mention adding any reference to your C# assembly. If you didn't do it, you can expect it to be available in X++.

  • D365FO DEV Profile Picture
    406 on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    Im using the code provided in the documentation from another person, i made the same steps, created tables with fields, and the two classes, but im getting errors, im lost

  • Martin Dráb Profile Picture
    236,974 Most Valuable Professional on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    I'm sorry, but the description "I'm using some code, I made some steps and I'm getting errors" is not something I can work with.

    We can't help you if you don't do your part (explaining of what you did and what problem you have with it).

  • D365FO DEV Profile Picture
    406 on at
    RE: Integrate OpenAI ChatGPT with Finance and operations

    My main issue is when i try to create a class using c#, i click on visual c# -> ASP.NET in order to be able to write a code using c# but its saying 'no items avaible for ASP.NET'

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 701 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 588 Most Valuable Professional

#3
Sumit Singh Profile Picture

Sumit Singh 544

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans