Hello there! Does anybody know how to programmatic...
# suitescript
m
Hello there! Does anybody know how to programmatically trigger the "Update Revenue Plans" action from a server-side SuiteScript? I managed to do it in a client script by calling the same URL as the UI button (e.g.,
"https://"+host+"/app/accounting/revrec/RevenueArrangementButtonHandler.nl?id="+revenuearrangement_id+"&type=updaterevenueplan"
), but now I need to achieve this at the end of a map/reduce script. Thanks in advance! Manuel
y
I remember I have done it somewhere,....we need to pass some credentials or session to call it from server side
m
Thanks, Kumar. Please let me know if you find out how you did it. It's important to note that during the reduce step of a map/reduce script, we do not have an active session available at all.