MR status page - is there a "task link" to this? I...
# suitescript
r
MR status page - is there a "task link" to this? I have a pasted url in code in a script I didn't write.
It looks like not - those pages end in
<http://card.nl|card.nl>
. Is there a better way to link to that page?
m
It looks like you can use
LIST_MAPREDUCESCRIPTSTATUS
with
url.resolveTaskLink
but I don't immediately see how to specify the script and deployment you'd like to filter to.
Copy code
const statusPageUrl = url.resolveTaskLink({
  id: 'LIST_MAPREDUCESCRIPTSTATUS'
});
works for me in the debugger;
👀 1
e
Copy code
const statusPageUrl = url.resolveTaskLink({
  id: 'LIST_MAPREDUCESCRIPTSTATUS',
  params: {
    daterange: 'TODAY',
    scripttype: 743
  }
});
The
scripttype
is the URL param for filtering by script, apparently, using the numeric ID of the Script record
🤘 1
If you play around with the Filters in the UI, you can see how the corresponding URL params adjust
r
Now I'm curious, where did you two find
LIST_MAPREDUCESCRIPTSTATUS
? I don't see that in the API doc?
e
I didn't find that one, that's all Mike 🙂
r
I have the full url, so I already know the params
oh i see
view page source
thanks netsuite
m
Go to the map/reduce status page, click the Help link in the upper-right. the task name was listed in the help page url. I found it accidentally just now.,
mindblown 1