Skip to main content

Notifications

Dynamics 365 general forum

Currency field

Posted on by Microsoft Employee

Hi,

I am trying to create a new currency field which displays at 2 decimal places:

Currency_5F00_field.png

However when I look at this new field on the form it looks like this:

Field_5F00_on_5F00_form.png

and when I hover over the X it says ' A currency is required if a value exists in a money field. Select a currency and try again.'

However we have other currency fields, that are set up as above but do not look like this on the form.

Other_5F00_fields.png

Everything seems to be correct under Settings >> Administration >> System setting >> Formats

System_5F00_settings.png

Unfortunately I was not managing this CRM when the other currency fields were created so I'm not sure of the set up, but I assumed if I created the new fields they way the existing ones were done that would be sufficient, however it doesn't seem to be the case.

Thanks in advance for any help you can provide.

Thank you,

Tanya

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Currency field

    Thanks so much for that information.

    After a bit more playing around I found out what the issue was.

    I didn't realise that when I created my new field (field type currency), Dynamics also created an additional field called 'Currency'. I had added my new field to an existing record, but didn't notice the 'Currency' field which was then causing an error because it was not being populated. If I was creating a new record this 'Currency' field gets populated on creation of a record, so it wouldn't have bee a problem but because the new field was added to an existing record I needed to patch the data to stop the error from occurring.

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Currency field

    Do you have a default currency set in your user preferences? 

    The below is stolen from Neil Parkhurst in community.dynamics.com/.../211409

    As this is a data issue it might not be surprising that you haven't seen the problem before.

    It could be down to user behaviour!

    Say your custom entity is linked to account and that has a default currency set on the account. If you created the custom entity from account then the currency field would be mapped onto the custom entity and all would be good.

    But if the user created to custom entity not from the account then the currency would need to come from their user options. Which if not set would mean the currency field could be blank.

    It could simply be the way the users happened to create those specific records caused the problem. If you ensure all your users have a default currency set you will probably not see this issue again.

    If it keeps happening you could consider having a business rule (or something) default the currency. But generally I wouldn't expect you to need that. When working with one currency, I often hide the currency as you have done and I haven't had this as a support issue often.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans