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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

formContext.getAttribute(arg).getValue() doesn't get column values from a different tab

(0) ShareShare
ReportReport
Posted on by 2,175

Hi all,

I've got a question about using the JavaScript method for formContext.getAttribute(arg).getValue(). I know it retrieves the column values on the record on the form. My question is how do I use JavaScript to get column values from a different tab in the same form on the same record. Seems to throw this error:

An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property '<my column name in another tab>' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values.

Not sure what the best method is to get column values from another tab in the same form. Would I have to use the web API to access those data?

Link to the getValue method here.

I have the same question (0)
  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Moderator on at

    When using the get value, tab will be not considered. If the data field which your are looking for is available in the payload object(form context) then you will get the data else no.

    try to check if that field is hidden on the form when accessing it?

  • Verified answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Error which you posted on your post is not from getValue() method. It is from web api and cause of this error is that you are not using correct schema name.

    You can use below tool to generate your web api code -

    github.com/.../DRB

    Now coming to your issue on getValue from different tab, ideally it should work ... have you checked if you are able to get the value if field is on the main tab?

  • MikeC282 Profile Picture
    2,175 on at

    Thank you! You are correct. It's bloody strange. In the formcontext the attribute names are all lower cased but odata.bind requires you to set the attribute with the capitals. So if I called a lookup field "Test Lookup".....

    The actual name to use for Odata.bind is new_TestLookup as opposed to new_testlookup. So if I use the createRecord method I have to use newTestLookup but if I want to use the formContext getValue method it has to be the lowercase.........

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans