Skip to content
  • Contacts
  • Articles
  • Categories

AX / Dynamics 365 For Finance and Operations blog

Category: str2Enum

D365FO – AX – Convert a value into an enum type (str2Enum)

Posted on 28 May 202114 October 2021 by Marco Saad

This example show how to convert a value into an enum type. If value cannot be converted the result of str2Enum is 255 SalesStatus salesStatus;str salesStatusValue = 'Open order'; salesStatus = str2Enum(salesStatus,salesStatusValue); //Put enum type (SalesSatus) and Enum value (salesStatusValue) Info(enum2Str(salesStatus));

Leave a comment

Cerca

Recent Posts

  • SQL SERVER – Create a SQL Server Linked Server to Azure SQL Database
  • SQL SERVER – Convert a given date from UTC to your time zone and daylight savings time
  • AX / D365FO – Get Form COntrol label text
  • AX / D365FO – Set up Data Entities Export recurring jobs
  • SQL SERVER – Copy more than 65535 characters from result grid Column

Categories

Enter your e-mail address to subscribe to this blog, and receive notifications of new posts by e-mail.

Join 1,627 other subscribers
Follow AX / Dynamics 365 For Finance and Operations blog on WordPress.com
Blog at WordPress.com.
  • Follow Following
    • AX / Dynamics 365 For Finance and Operations blog
    • Join 79 other followers
    • Already have a WordPress.com account? Log in now.
    • AX / Dynamics 365 For Finance and Operations blog
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar