How can i load a custom record using "external id"...
# suitescript
l
How can i load a custom record using "external id" suitescript 2.0
a
What was wrong with my answer earlier?
l
i meant to reply to you but i couldnt find my previous message im getting an error Cannot read property "id" from undefined
j
Your code looks valid. Are you sure that data.data[i].sku is a valid external id of the custom record you're working with? I'd log it out or try manually putting in the external id as a test.
l
yes i figured what i did wrong
thank you
a
Do you mind sharing?
l
i had to add this before the query line var data = JSON.parse(getData.body);
a
Ah ok. I like learning from other peoples mistakes.
👍 1