Skip to main content
Post a question

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

How to convert data from list to string in X++ code.

Like (3) ShareShare
ReportReport
Posted on 30 Jan 2025 08:02:35 by 28
I want to convert list data into string.
Categories:
  • Martin Dráb Profile Picture
    Martin Dráb 231,028 Most Valuable Professional on 30 Jan 2025 at 08:40:44
    How to convert data from list to string in X++ code.
    It's not reasonably possible to suggest a solution without knowing the requirements, but it's very unlikely that ToString() is the solution.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 14,528 Super User 2025 Season 1 on 30 Jan 2025 at 08:19:45
    How to convert data from list to string in X++ code.
  • Martin Dráb Profile Picture
    Martin Dráb 231,028 Most Valuable Professional on 30 Jan 2025 at 08:10:55
    How to convert data from list to string in X++ code.
    All right, noted. Is there something you want to ask about?
     
    Note that before you can write code for it, you'll need to think about how the string should look like. For example, you may want to delimit the values by something like comma, don't use any delimiter, wrap them in XML tags or so. It depends on what you want to do with the string.
     
    It also depends on the data in the list. If there are non-textual values, you'll need to convert them to string and you need to think about what conversion you want to use (e.g. there are many possible formats of date/time values).
  • Layan Jwei Profile Picture
    Layan Jwei 7,679 Super User 2025 Season 1 on 30 Jan 2025 at 08:10:41
    How to convert data from list to string in X++ code.
    Hi,
     
    Check this link if it helps
     

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,257 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,028 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans
Loading started