Hello guys, I'm trying to run a lookupFields in a ...
# suitescript
g
Hello guys, I'm trying to run a lookupFields in a RESTlet script v 2.1 but it does not show results. This is the code I'm using:
Copy code
poData = search.lookupFields({
            type: search.Type.PURCHASE_ORDER,
            id: '50850942',
            columns: ['createdfrom']
          });
          log.debug('Interco transaction', 'poData= ' + JSON.stringify(poData));
This is what the script logs look like: Anyone have any idea why it does not show results?
r
No data, check your code, id, module loaded, function defined
m
Your code works for me. When I use a non-existent transaction ID, I also get an empty object like you’re seeing.