<@UN03G4VT8> maybe do it in postSourcing?
# suitescript
n
@Dmitry Masanov maybe do it in postSourcing?
d
Thanks @NElliott, this looks exactly like what I was looking for. Though looks like it is not triggering for my record (Item Receipt)
a
What are you trying to do read the values of sales order list from item receipt's record ?
d
Well, it's actually ItemReciept that is created after pressing "Receive" button on RMA record, so it's a new one and it copies items from RMA.
a
oh I see its transform record - I think if you want to do validation then I think you could use the validateline
for updating/setting value postsourcing is to go
d
Looks like validateLine is not triggered either.
n
AFAIK validate line only fires when you alter a detail on the line. If nothing is changing on the line then it won't fire.
d
It seems so. I also tried lineInit, no luck
n
Do you need to know the items at that point in time? I'm wondering if you could perhaps shift to a User Event
d
Yes, it would be the last option. Though I just thought that this small enhancement I tried to implement didn't worth those big changes.
I'm starting to suspect that there is no id for items in Item Receipt object, since there is no issues getting RMA line items id using the same method.