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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

DATETime field

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

I have a customer requirement: 

I want to add a new date time field in custConfirmJour like ConfirmDate field + it gets the time of the confirmation transaction in the system for the sales order.  I've tried to insert it in the classes:

1. SalesFormletterParmData.

2.SalesConfirmJournalCreate\createJournalHeader.

but it returns to me errors while clicking the confirmation button of the sales order.

Can somenone let me know where can i insert this field?

Best regards.

I have the same question (0)
  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Let's start by sharing the relevant information that is required to identify problems in your code and analyze the error:

    1) Your code

    2) The error message

    Thanks!

  • Community Member Profile Picture
    on at

    Hello,
    1. I have added a dateTime field in the tables CustConfirmJour and salesParmTable whose extended data type is transDateTime.
    2. I have added a method named "updateDateTime" in the class SalesConfirmJournalCreate that returns the date time field of salesParmTable.
    3. i have added the line code :
    custConfirmJour.ConfirmDateTime = salesParmTable.TransDateTime;
    under the method initJournalHeader method of the class SalesConfirmJournalCreate.
    4. I have added in the run method of the class SalesFormLetter the line: this.transDateTime(DateTimeUtil::getSystemDateTime());
    5. I have added the method TransDateTime() in the class FormLetterServiceController.
    6. I have added the parmTransDate method in the class FormLetterContract
    7. Finally the line code on the MainOnServer of salesFormLetter class:
    salesFormLetter.transDateTime(DateTimeUtil::getSystemDateTime());


    I have this error :

    7651.Error.png

    Best regards.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Try to clear your usage data and then run it again.

  • Community Member Profile Picture
    on at

    I did it but the error displays again.

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Try AOS restart, full x++ compile and CIL generation. In general you should do these every night in your dev system.

  • Community Member Profile Picture
    on at

    58332.Error.png

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    You need to start by having a succesful x++ build without any errors. Then full CIL. Then db sync.

    There's no point for you to test anything in this system if the codebase is in a broken state!

    I strongly suggest you set up a nightly build in your dev system. This way you will catch any errors right away and can fix them the next morning.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans