This message was deleted.
# suitescript
s
This message was deleted.
e
Search Columns are not the same as Fields.
approved
is a Field on the Journal Entry record but is not a Search Column available on the Transaction Search object.
s
I see what you mean. The way I do it, I'm reading the transaction table, and I should read the journal entry table. Right ?
e
For
search.lookupFields
, you should be reading the Transaction table. For
record.submitFields
, you should be reading the Journal Entry table.
👍 1
s
How can I access the Journal Entry table ? I tried many things without success
e
When I say "reading", I literally mean "reading the Records Browser" pages I linked above
Searches and Records use two entirely separate data models.
s
I'm more confused than ever.
I will tell my customer to stay with the Workflow. Meanwhile I will contact Netsuite to explain me how to do it. I greatly appreciated your help
b
the record, search, and query modules access data differently
dont expect record field ids to match search column ids
s
Thanks. I simply try to access that field. I just opened a ticket with Netsuite support.
b
you are using simply as in you are trying to access a record's field the same way as a search column
they are not the same
s
Yes. I'm missing something. I can't access the field using lookup.field, nor SuiteQL.
b
you will not get very far without understanding that there is no approved column available to transaction in query or search
there is no guarantee that there is an approved column even if there is an approved field available to the record module
s
Thanks
e
When you are writing your code, what are you using as a reference for obtaining Field IDs?
s
It is possible to access the field approved in the workflow. I want to do the same thing in a script. I have opened a ticket with Netsuite. Thanks a lot
b
do the same thing that the workflow is doing, use the record module