Is there any way to retrieve via SuiteScript if an...
# suitescript
m
Is there any way to retrieve via SuiteScript if an accounting period has been locked for a specific subsidiary?
t
well, my idea here is you can log it via suitescript. But determining it I don't think so
w
Have you tried doing a taskitemstatus-search?
Copy code
var taskitemstatusSearchObj = search.create({
   type: "taskitemstatus",
   filters:
   [
      ["subsidiary","anyof","1"], 
      "AND", 
      ["period","abs","152"], 
      "AND", 
      ["itemtype","anyof","PCP_LOCK_ALL"]
   ],
   columns:
   [
      search.createColumn({
         name: "period",
         sort: search.Sort.ASC
      }),
      "subsidiary",
      "itemtype",
      "complete",
      "inprogress",
      "lastmodifieddate",
      "modifier"
   ]
});
The record isn't listed in the Records Browser, but it is listed in the Analytics Browser
s
Untitled
m
Thanks @Watz and @creece. Works perfectly
c
I think you mean @stalbert but i'll take the win
m
Lol yup
s
heh