Skip to main content
Microsoft Dynamics AX forum
Answered

Filtering out ENUM Values in Electronic Reporting

editSubscribe (1) ShareShare
ReportReport
Posted on by 7

Hi i wanted to get only purchased inventory transactions. But as this field is an enum type , so i have a hard time putting in the condition.

i know in X++ we use it like this ,
queryFilter.value(queryValue(StatusReceipt::Purchased));

However , I can’t find out anywhere what is the proper syntax I can use here for filtering my condition

FILTER(InventTrans,
AND(InventTrans.ItemId = @.ItemId,
InventTrans.DatePhysical = TransDate,
InventTrans.StatusReceipt = ‘Purchased’ /// I want this line corrected
)
)

Attachments
  • Verified answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 3,611 UG Leader on at
    Filtering out ENUM Values in Electronic Reporting
    Hi,
     
    try this to use GetEnumValueByName function.
     
    Please refer to this :
     
     
    Best regards,
    Mohamed Amine MAHMOUDI

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,126 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,646 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans