Hello, When I try to get the `tranid` of a transa...
# suitescript
t
Hello, When I try to get the
tranid
of a transaction record in aftersubmit(using currentRecord), it gives me "To be Generated". To escape, I have loaded the record in AS again and then I am getting it. It works fine. but I want to know why I am not getting that using currentRecord in AS. I believe it should provide tranid in AS.
b
expected behavior
transaction is not updated with values that are set after its submitted
the exception is the id
generally you would use search.lookupFields to get its value if you need it
t
Ohh, okay. yes I use that when I need body fields only. When I need some line fields, I load the record. Thanks for your help !