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 a managed API can be used from X++

(0) ShareShare
ReportReport
Posted on by

Any Code is there

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

         What is your Question here?

    Thanks

    Suresh

  • Community Member Profile Picture
    on at

    Hi Suresh,

    how to create and use objects of managed types from within X++ code

  • Verified answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    You can use managed APIs from assemblies that are added to the references node in the AOT

  • Community Member Profile Picture
    on at

    plz explain in detail

  • Verified answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    Please refer the below link:

    https://msdn.microsoft.com/en-us/library/cc598160.aspx

  • Verified answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi,

    https://msdn.microsoft.com/en-us/library/gg889157.aspx

  • Community Member Profile Picture
    on at

    Hi,

    I NEED IN X++ CODE

  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Hi John,

    You should check these links below, they will show you how you can use managed APIs in X++

    https://msdn.microsoft.com/en-us/library/cc598160.aspx

    here is another small booklet

  • Verified answer
    Pravasti AK Profile Picture
    2,985 on at

    public client static boolean copyFile(str fileName, str newFileName, boolean overwrite = false)

    {

       try

       {

           System.IO.File::Copy(fileName, newFileName, overwrite);

           return true;

       }

       catch(Exception::CLRError)

       {

           return false;

       }

    }

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans