Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Array

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I am reading Data from Invoice Lines and storing  the value of Custom Field DocNo in Array. Then i want to loop thru array and search that Field in Sale Header No field. If found then append that No to a variable.

Doc No can be multiple.

Thanks

*This post is locked for comments

  • Verified answer
    Suresh Kulla Profile Picture
    47,789 on at
    RE: Array

    So you don't want to store duplicates in the array or are you asking how to read the array ? If you don't want to store duplicate Doc No then create a function which will loop through the current Array and check if the value exists before adding it.

    Use the FOR Loop to iterate the array

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans