Notifications
Announcements
No record found.
Hi All,
I want to add number of zero's prefix of real field value(Customer balance) like (#00000000000.00) this format.
Ex: customer balance round of 341.75 means I need this value to be this #00000000341.75 format
Any help
Hello baduru,
Is this issue related to AX2012 or D365FO?
Asking because you ended up in the 'old' AX2012 forum.
Best regards,
Ludwig
Several approaches are possible. I would use System.String::Format():
str s = System.String::Format('#{0:00000000000.00}', 341.75);
Hi Ludwig,
Thanks for your response
I am working in D365 FO
Hi Martin,
I tried the above code but it's not working as expected for my data entity export activity
str customerBalance = System.String::Format('#{0:00000000000.00}', custTrans.AmountMST);
Actual o/p:
#000000003
Expected o/p:
#00000000341.75
Kindly let me know how can i achieve this format.
Thanks in advance
Aren't you assigning it to a string variable with StringSize=10? It sounds very likely to me - I guess you're using an EDT with limited string size. after assigning
By the way, I moved this thread to Dynamics 365 Finance forum.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 422 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional