Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Is it possible get the integer value of 'single line text' in a calculated field

(0) ShareShare
ReportReport
Posted on by 8

It shows an error.

You can't set the value new_refobj.fieldname., which is of type string, to type integer

  • Suggested answer
    Marco.P Profile Picture
    2,405 on at
    RE: Is it possible get the integer value of 'single line text' in a calculated field

    Hi,

    unfortunatly that can be done with calculated fields. You can refer to this to take a look at the formula availables:

    www.encloud9.com/.../

    You can try to achieve your goal by using a js function, take a look at this :

    carldesouza.com/.../

    Hope it helps!

    Please, mark the answer as verified if you find it useful or to close this thread.

  • phanikumar Profile Picture
    8 on at
    RE: Is it possible get the integer value of 'single line text' in a calculated field

    Hi,

    It is not in the web resource, I am creating a calculated  field. I require a formula to get value populated form a string field and store as integer field in the calculated field(whole number type).

    2742.Calculated-Field.png

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at
    RE: Is it possible get the integer value of 'single line text' in a calculated field

    Hi,

    What is your code?

    From your description it seems you're trying to set the value rather than getting.

    Have you tried:

    Xrm.Page.getAttribute("new_refobj").getValue();

    Regards,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,998 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,850 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans