Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Navision - New Dataport : Quickest way to translate Datafields

Posted on by 21

Hello,

Periodically I want to export to .csv a list of records from a filtered table. Example :

Customer Pallettype Date

------------------------------------

Nike   Europal1  2023-05-26

Adidas  Europal2 2023-05-24

Asics Europal1 2023-05-24

But I don't want to export directly these raw fields. I shall convert them so that my .csv export fits with a 3rd party app that will import the .csv

Nike shall be 0215-NIKE

Adidas shall be 3548-ADIDAS

Asics shall be  4782-ASICS

Europal1 shall be EURO 90 X 120

Europal2 shall be EURO 100 X 100

Could you please help me to figure out what's the more conveniant way to perform these fields translations ? Doable by SourceExpr Property ?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Navision - New Dataport : Quickest way to translate Datafields

    I think the easiest way would be to write code in the OnBeforeExport trigger for the pallet field.

    Then you can make sure that the correct value is being exported.

    Edit your dataport and press F9 to get access to the code for the triggers.

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