web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,171

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 Super User 2025 Season 2 on at
    RE: formContext.getAttribute(arg).getValue() doesn't get column values from a different tab

    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,983 Moderator on at
    RE: formContext.getAttribute(arg).getValue() doesn't get column values from a different tab

    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,171 on at
    RE: formContext.getAttribute(arg).getValue() doesn't get column values from a different tab

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 235

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 177

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 156 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans