2
votes
LWC [object Object] returns undefined when trying to access property values
JavaScript is case sensitive. In your JSON its mentioned as Id whereas you are printing id.
Change it to Id and it should work.
1
vote
How to show results of map<> written in Apex from LWC JS and HTML
This happens just because the target is an object with keys / values. Because LWC doesn't have anything similar to object[key] so you can't get values dynamically from an object if the key is not ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
javascript × 5121visualforce × 1615
apex × 1055
lightning-web-components × 976
lightning-aura-components × 896
lightning × 530
custom-button × 327
jquery × 286
html × 223
marketing-cloud × 182
javascript-remoting × 139
aura × 132
css × 120
community × 101
controller × 96
javascript-controller × 91
static-resources × 76
button × 75
json × 74
locker-service × 73
visualforce-component × 71
lightning-experience × 69
ampscript × 66
ssjs × 64
ajax × 62