Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Lookup item by GTIN in Sales Order Sales Line table

(2) ShareShare
ReportReport
Posted on by 61

Hello guys,

I have added a GTIN column to the Sales Line table in the Sales Order page

Screen-Shot-2022_2D00_08_2D00_30-at-23.35.47.png

What would be the proper way to add ability to search an items by typing a GTIN value as it is possible in No. column? I made this column 'Lookup = true', but it seems to be not enough.

And another question: if I found some item by its number, what do I need to do to autofill GTIN column with item's GTIN value?

Thanks in advance for your reponses!

  • Peter Waugh Profile Picture
    131 on at
    Lookup item by GTIN in Sales Order Sales Line table
    Does this mean Sales Lines can also use FlowFields to link item references for Unit of Measure Reference type "Bar Code" 
    Type Item > GTIN Number 
    Unit of Measure Code > Bar Code Reference ? 
     
    Thank you 
    Peter 
  • Johny Be Good Profile Picture
    61 on at
    RE: Lookup item by GTIN in Sales Order Sales Line table

    It works like a charm! Thanks for the article, it is really helpful.

  • Verified answer
    YUN ZHU Profile Picture
    81,360 Super User 2025 Season 1 on at
    RE: Lookup item by GTIN in Sales Order Sales Line table

    Hi, The easiest way is to use Flowfields

    More details: https://yzhums.com/5802/

    pastedimage1661904525574v1.png

    pastedimage1661904533568v2.png

    And there is another way to use trigger of No. field or Sales Lines table.

    When inserting and modifying No., autofill the GTIN number at the same time.

    Hope this helps.
    Thanks.

    ZHU

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans