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','78595'),'workflowbuttonobsoletehandling','T');}}finally{ if (!!window) { window.NLScriptIdForLogging = origScriptIdForLogging; window.NLDeploymentIdForLogging = origDeploymentIdForLogging; }}; return false;" onmousedown="this.setAttribute('_mousedown','T'); setButtonDown(true, false, this);" onmouseup="this.setAttribute('_mousedown','F'); setButtonDown(false, false, this);" onmouseout="if(this.getAttribute('_mousedown')=='T') setButtonDown(false, false, this);" onmouseover="if(this.getAttribute('_mousedown')=='T') setButtonDown(true, false, this);">
Just to recap: Preferably, I would like to trigger the workflow for that record when the “check-in” link is clicked on saved search (SS). Essentially, the link would behave in the same fashion as the workflow button that lives on the custom record; it would be better if the user didn’t have to leave the SS dashboard experience. This is outside of my knowledge base. I will double check the param sets first thing tomorrow to confirm. I thought I included all relevant code –
Thank you in advance for your time and consideration.