Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How to apply @*InvoiceNumber* filter programatically

Posted on by 422

Hi,

I have invoice number given in 'Remarks' along with few other values in it.

I want to filter this 'Remarks' column with invoice numbers as @*invoiceNumber* in coding !.

Any way for this?

Regards,

Abdul Rahman

*This post is locked for comments

  • AbduTeeyech Profile Picture
    AbduTeeyech 422 on at
    RE: How to apply @*InvoiceNumber* filter programatically

    Thanks Mohana, Rafael & Robertas,

    STRPOS may not help as the same string repeats for other than invoice number, let me try Robertas's suggestion.

    Thanks again to all !.

    Abdul !.

  • Verified answer
    RobertasR Profile Picture
    RobertasR 5,002 on at
    RE: How to apply @*InvoiceNumber* filter programatically

    Hi

    is it that you need all records where field Remark holds the invoice number?

    If so, you can use Record.SETFILTER(Remarks, '%1', '@*InvoiceNo*');

    the 'Record' is the record variable of the table in question.

    Robertas

  • Rafael B. Profile Picture
    Rafael B. 715 on at
    RE: How to apply @*InvoiceNumber* filter programatically

    Hi @Abdul Rahman T H,

    Could you write here few examples of text where your invoice no. is located?

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,137 Super User 2024 Season 2 on at
    RE: How to apply @*InvoiceNumber* filter programatically

    Did you try STRPOS function?

    msdn.microsoft.com/.../dd355417(v=nav.90).aspx

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans