web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to set value in a currency field type

(0) ShareShare
ReportReport
Posted on by 250

Hello everyone im trying to set a value in a currency type field but i am not getting it in plugin:

string revenue = "2.352.000,00";

if (decimal.TryParse(revenue, out decimal value))
{

entity["revenue"] = new Money(value);

}

but the value do not save in crm.

what am i doing wrong ?

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Try following:

    string revenue = "2352000";

    if (decimal.TryParse(revenue, out decimal value))

    {

    entity["revenue"] = new Money(value);

    }

  • TaniSantos Profile Picture
    250 on at

    Thanks so much it worked

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans