Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to export enum value in Excel using custom electronic reporting

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

Can anyone help or provide a link, how to add or bind an Enum value or name in excel using electronic reporting report. Actually I want to create custom report (Excel) of Vendor transaction with enum value of transaction type.

Thanking you in advance.

Regards,

Vijay A Vishwakarma.

  • Verified answer
    huijij Profile Picture
    19,811 on at
    RE: How to export enum value in Excel using custom electronic reporting

    Hi Vijay,

    The following blog mentions CASE function, for each enum value, type in the value you want to display in your report.

    The formula is something like:

    CASE(@.’purchLine()’.’getItemType()’, Po_Line_Type.Item, “Stock”,Po_Line_Type.Service, “Service”)

    antoineabastian.wordpress.com/.../

  • JamesT Profile Picture
    341 on at
    RE: How to export enum value in Excel using custom electronic reporting

    Hi Vijay,

     

    I might have done something similar to what you are seeking (not 100% sure) for the Fixed Asset Roll forward report, which is also done via Electronic reporting and Excel format.

     

    The client wanted to show the FIXED ASSET STATUS in the report.

     

    However this is an ENUM field, so D365FO would allow me to just add the ENUM.  So I used a formula to convert to a STRING, and this worked for me.

    FAssetSTATUS: String = MID(TEXT(@.'>Relations'.AssetId.'book()'.Status),37,15)

    Maybe it might be a solution for you.

    Regards

    James

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans