Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9131655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:10:31+00:00 2026-06-17T08:10:31+00:00

I tried to execute the following command from the console. var subject = Xrm.Page.ui.controls.get(subject);

  • 0

I tried to execute the following command from the console.

var subject = Xrm.Page.ui.controls.get("subject");

That’s the exact syntax I’m using in the web resource that I’m plugging in to CRM. However, I only got an error message saying that “unable to get property ‘controls’ of undefined or null reference”.

I do understand the message. What I want to know is two-fold.

  1. What syntax will work from the console (F12) to refer to the stuff on the screen?
  2. Why doesn’t it work the way I did? Where doesn ui come from?

I’ve checked that I can refer to both Xrm and Crm.Page but apparently ui is null (it’s listed when I print out the contents of Page but sett to null).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:10:31+00:00Added an answer on June 17, 2026 at 8:10 am

    In addition to what @Daryl said, I can add that I use different syntax. For some reason, I don’t get his to work either. Might have to do with different browser version or something. Instead try to execute this, if you still can’t get it to work (although I must admit that his is shorter = better).

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

    The lastname parts is tested a minute ago on creation of an instance of entity Contact. I just put in a breakpoint inside a script that is executed onchange and while broken-pointed, I entered the command above to the console.

    If neither approach works for you, you’ve got some weird problem with your CRM or browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i tried to execute the following command from java code in linux, ls
i Tried to get data from excel in java. if i execute it as
The following works fine from command line /usr/bin/mysqldump -uUser -pPass Db_name > /var/www/db_backup/db.`date +%Y%m%d%H%M`.sql
When executing some command(let's say 'x') from cmd line, I get the following message:
I am trying to execute this SQL command: SELECT page.page_namespace, pagelinks.pl_namespace, COUNT(*) FROM page,
I tried to set the usergent using Inet1.Execute , GET, Referer: yahoo.com & vbCrLf
I tried to switch from Java 5 to Java 6 using the update-java-alternatives command
I tried to run the following command, in the folder of my Django project:
I am trying to export from a mongo database using the following mongoexport command
When I run the following command from command line, I can run 7-zip as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.