AX 2012 - how to use 'NOT LIKE' in AX statements

AX 2012 - how to use 'NOT LIKE' in AX statements

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
Please note that I am using ! after 'where' keyword to reverses the effect of 'like' 

static void Not_Like(Args _args)
{
    #define.createdBy('faisal')
    InventTable     inventTable;
   
    while select inventTable
        where !(inventTable.ItemId like 'I*')
    {
        // do your logic  
    }

}
Previous article← AX 2012 : Generate customer account statement as PDF through X++
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K