Hi. How does one go about loading a transaction in...
# general
d
Hi. How does one go about loading a transaction in Suitescript? I tried
Copy code
nlapiLoadRecord('transaction', transid)
and I got
Copy code
SSS_INVALID_RECORD_TYPE
Any ideas? What exactly am I missing from this deceptively easy task? Any help would be appreciated.
s
Firstly, use (suitescript) 2.0 if you are trying to learn, not 1.0. You might might as well start at the latest greatest. With that said, go to help pages and search for
record.load
, should be pretty straightforward. Also I would recommend directing future suitescript questions to the #suitescript channel
d
Not trying to learn, I'm already a bit ahead in terms of development. Switching at this point would waste a lot of time. I'm looking for a 1.0 solution. I will direct my question there as well.
s
@Dowen Robinson you need to specify the type of transaction.. ‘salesorder’, etc…
👍 2