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 :
Microsoft Dynamics AX (Archived)

get Createdby name from table to Report

(0) ShareShare
ReportReport
Posted on by

i have to show who created the Record in a table to show in my report.

Table: VendReceiptsListJour

i tried:

in processreport:

myTmp.CreatedName          = this.getName(vendReceiptsListJour.createdBy);

getName Method:

public Name getName(NetworkAlias _alias)
{
UserInfo userInfo;

select * from userInfo where userInfo.networkAlias == _alias;

return UserInfo.name;
}

it didn't work, can you help me, thanks.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Kanagaraj A Profile Picture
    1,254 on at
    RE: get Createdby name from table to Report

    try this,

    This may help you before testing this ensure Createdby property should be YES in your table property.

    UserInfo userInfo;

       select networkAlias,name from UserInfo

           where userInfo.id == purchtable::find("000043").createdBy;

       info(strFmt("Name %1 Network alias-%2 Created by : %3", UserInfo.name,UserInfo.networkAlias,purchtable::find("000043").createdBy));

  • Verified answer
    Sohaib Cheema Profile Picture
    47,784 User Group Leader on at
    RE: get Createdby name from table to Report

    also kindly remove * from your query.

    you can specify filed name after select such as select FieldName from TableName;

    this has nothing to do with your question but it will result in better processing.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: get Createdby name from table to Report

    Hi RenSonozaki,

    Go to the table properties and change CreatedBy to yes.

  • Suggested answer
    Sohaib Cheema Profile Picture
    47,784 User Group Leader on at
    RE: get Createdby name from table to Report

    where userInfo.id== _vendReceiptsListJour.createdBy;

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Rahul Shah Profile Picture

Rahul Shah 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans