Can we use a 1.0 suielet to call a M/R 2.0/2.1?
# suitescript
t
Can we use a 1.0 suielet to call a M/R 2.0/2.1?
a
I don't believe so you'd need a 1.0 equivalent of the N/task module and I don't believe there is one
r
Nope there is no API in 1.0. you can only call 2.0 SL and get that to call MR if you really really need to
t
Even if its 1.0 suitelet to 2.0? and then the 2.0 SL will call the M/R?
a
... a 1.0 suitelet... to a 2.0 suitelet?
t
yeah just redirecting using ClientScript 🤔
a
and then the 2.0 suitelet calls the MR? yeah I don't know why that shouldn't work
😅 1
... its insane.. but you do you 😛
😅 2
I was just assuming you meant call directly from 1.0 suitelet to MR
i don't think I've ever had a suitelet call a suitelet, so i suppose NS could block taht for some reason but idk why they would
I'm just teasing, I'm sure you have your reasons
😆 1
t
hahahaha.. yeah I know @Anthony OConnor but my client is asking to use now an MR instead of a SS because its giving us a LIMIT_EXCEEDED 😐
I told him that too, I never done that crazy idea of calling a script on different version, its like calling a DC hero into fighting a Marvel comics enemy 😏
🤣 1
a
what limit is being exceeded in a SS? you just yield and reschedule?
t
I trigger the SS via SL to save a data from a sublist in a suitelet.
But this SS has search/deletion of records/saving
a
oh so the suitelet is timing out on a response?
t
so I am thinking right now, we isolate the deletion first and see how it works
The SS, whenever it got on the phase it needs to save the record, it SSS_LIMIT_EXCEEDED
a
is it USAGE limit exceeded or TIME limit exceeded?
the suitelet time limit should be 5minutes, that's.. quite a white?
t
SSS USAGE LIMIT
a
oh that's a governance issue
r
Just check the gov points and yield the script when remaining points below 1000
a
do you know how to check governance usages in a 1.0 schedule script? and yield and reschedule?
its a pretty common pattern, but its years since i did that now 🙂 2.0 only here
r
When I first found that yield in my early Development days it was like Magic
😆 1
t
now i get why it is magical @reza.seedin Thanks @Anthony OConnor
👍 1
r
nlapiyieldscript. Although you should have done your development in 2.1 from start.
t
yeah, we will convert it to 2.1 . Thanks @raghav this is all done 👍