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 to create job by code

(0) ShareShare
ReportReport
Posted on by

I have a form with text box which i will write my job in it

i need to code a button to pull that text and save it as a job in AOT

HOW CAN I ACHIEVE THAT ?????

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You have to use TreeNode and setSource().

    Here is an example, check the second part:

    http://stackoverflow.com/questions/29840202/add-a-method-dynamically-in-ax-2012-component

    And another, but not for jobs:

    fourone.se/.../create-class-and-methods-in-x

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Nevertheless it sounds like a suspicious and dangerous piece of logic. What are you trying to achieve by that? Maybe we can suggest a better solution.

  • Community Member Profile Picture
    on at

    Thanks Vilmos Kintera

  • Community Member Profile Picture
    on at

    Not at all, I am creating a form to do all my tests through it , all in one place

  • Verified answer
    Abhishek_mishra Profile Picture
    405 on at

    You can also try RunBuf method, Its evaluates your job(Written as string) directly.

  • Community Member Profile Picture
    on at

    Perfect

    Thanks Abhishek_mishra

    i intend to save the text to job then run it, but RunBuf is PERFECT for what i need.

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