Wednesday, 8 January 2020

NetSuite Saved Search : Add Link to Results Column to Call Workflow

I was hoping to get help from a NetSuite guru. Per the code below, I'm able to add a view link to the results column in my saved search via the formula (text):

'<font size="2">'||'<br><a name="View" id="View"href="'||'https://XXXXXX-sb1.app.netsuite.com/app/common/custom/custrecordentry.nl?rectype=142&id='||{internalid}||'"target="_blank">View</a> 

While the above is helpful, my main goal is to create a link that calls a workflow button that lives on the custom record. Possible I could get some help in building out my link using the following code derived from the F12 dev tools?

<input type="button" style="" class="rndbuttoninpt bntBgT" value="Check-In" id="custpageworkflow157" name="custpageworkflow157" onclick="try{ if (!!window) { var origScriptIdForLogging = window.NLScriptIdForLogging; var origDeploymentIdForLogging = window.NLDeploymentIdForLogging; window.NLScriptIdForLogging = 'CUSTOMSCRIPT_STICK_USER_PREFERENCE'; window.NLDeploymentIdForLogging = 'CUSTOMDEPLOY_STICK_USER_PREFERENCE'; }try{NS.Workflow.buttonClick('custpageworkflow157');}catch(e){document.location = addParamToURL(addParamToURL(addParamToURL(document.location.href,'workflowbutton','157'),'workflowbuttoninstanceid','78503')

Thank you in advance for your time and consideration.



from NetSuite Saved Search : Add Link to Results Column to Call Workflow

No comments:

Post a Comment