I have this result
[{"recordType":"inventoryitem","id":"19886","values":{"internalid":[{"value":"19886","text":"19886"}]}}]
from this, i want to take the internalid value, i tried, but there is no output, could anyone please help me?
d
Diderik
04/26/2023, 8:30 AM
What did you try that gave no output?
v
vennila ramasamy
04/26/2023, 8:40 AM
result[0].values.internalid[0].value
vennila ramasamy
04/26/2023, 8:50 AM
i got it, i used .getValue, now working thank yo
r
raghav
04/26/2023, 12:00 PM
Is this a search object ?
If yes result[0].getValue("internalid") will give you value and result[0].getText("internalid") will give you it's text.
The 0 after the result may or may not be needed.
As there is not enough context provided, if none of those work share your code.