I have a problem where I created a custom sale Tra...
# suitescript
n
I have a problem where I created a custom sale Transaction and I created a Saved Search with Line ID (for the lines of the transactions) -> I am running a MRS script through the lines and creating a Sales Order and I want to add the created sales order to a custom column field on the custom transaction line item. The problem is that in my saved search I have "Line ID" as the ID with which I am trying to refer back to the line to set the line item value... the Line ID seems to be really wonky though and doesn't seem to work to refer back to the correct line Is there something in a saved search I can add that will allow me to refer back to that line and write to it?
m
There are three line identifiers available. If I recall correctly
Line Sequence Number
is the order the line appears in the transaction while
Line ID
always increments for each line. (For example if you add three lines and then delete the second one, the Line IDs will be 1 and 3). I'd recommend using
Line Unique Key
instead which is unique identifier across all transactions
n
If you use Line Unique Key, how do you get that back into you code to set a value on that line?