My Stuff
Please note that on Friday, September 19, 2025, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Comments
-
Hello @Richard James Uri-Oracle , Upon checking deployments, I noticed that "deployed" was unchecked. After checking deployed, I ran a special order PO and I got this error. TypeError: Cannot read property 'SALES_ORDER' of undefined It might be stemming from this const salesOrderId = newPO.getValue({ fieldId: 'createdfrom'…
-
Hello @Richard James Uri-Oracle Yes, I can process a special order PO and I'll return to the Sales Order immediately after. The expectation is that the commission value is recalculated for each line item on the Order after the PO is submitted and we land back on the Sales Order. I did add the log.debug and added the log…
-
Hello @Richard James Uri-Oracle Thanks, I approached this again as an afterSubmit function. I can get the script to work without error, but nothing happens. I do have the deployment set to PO. Theoretically, it should work. Am I missing a step? What about a beforeLoad function for the SO deployment? /** * @NApiVersion 2.1…
-
Hello @Joahnna Given Uy-Oracle I was able to get my script to work, I had to add different events in order to get it to work, /** * @NApiVersion 2.1 * @NScriptType ClientScript * @NModuleScope SameAccount */ define(['N/currentRecord','N/record'], (currentRecord,record)=>{ const CommLoad = (context)=>{ var currRecord =…
-
Hello @Joahnna Given Uy-Oracle How would I be able to create a currecord.CommitLine function? I think that this will workout for what I need to accomplish, since you have to commit any rate changes or when adding new line items. Would it be possible that if a line is committed, I can run the same calculation script?
-
Hello @Joahnna Given Uy-Oracle , I made progress with my script! /** * @NApiVersion 2.1 * @NScriptType ClientScript * @NModuleScope SameAccount */ define(['N/currentRecord'], (currentRecord)=>{ const pageInit = (context)=>{ var currRecord = context.currentRecord, lines = currRecord.getLineCount({ sublistId: 'item' });…
-
Hello @Joahnna Given Uy-Oracle , That's what I've been trying, so far my attempts have been unsuccessful. I think that the problem I have may be that I am not setting the COMM % value correctly. Is this correct? Assuming that everything works, is this how I would update a transaction line field that has a dropdown? The…
-
Hello @Joahnna Given Uy-Oracle Thanks! For 107793 and 95093, this is the same code that is used for 94464. This is what I based my code off, this code updates the SO, but it does not add a value to the line item itself. For 41288, this is more for the webstore itself, would I be able to use a similar structure in the NS…
-
Update, I redid the script and still got the same error at the end. Environment: SandBox Date & Time: 08/18/2023 07:35 am Execution Time: 0.00s Script Usage: 0 Script: comm percentage Type: User Event Function: afterSubmit Error: ReferenceError ReferenceError: error is not defined [at Object.afterSubmit…
-
Hello everyone, Update. I added my script and got it to deploy onto the quote and SO but I ran across this error. ReferenceError: error is not defined [at Object.afterSubmit (/SuiteScripts/Commission-SO-Q-Litem.js:157:23)] Seems to be the last part of the error. throw error.create({ name: 'Unexpected Error', message:…
-
Hello @Joahnna Given Uy-Oracle Would I be able to test this on my sandbox account without authorizing a card? If so, then I can try coding it myself to get the the script working correctly.
-
Hello @Joahnna Given Uy-Oracle I am trying to implement a conversion tracking script. We do have it setup in our config, but we're wanting to now collect ecommerce data. I planned to integrate the script onto the order_wizard_confirmation_module.tpl I would try creating the {#if} and {#each} statements myself in the…
-
Hello @Joahnna Given Uy-Oracle That is whole script above. I am not sure how I would create the each help for it.
-
@Nicole Mendoza-Oracle Thanks! that part will be fore me!
-
@Mark Vargas-Oracle @Richard James Uri-Oracle The duplicates were not appearing when we removed the product ID field; I still don't understand how that particular field could produce duplicates. When comparing to a field, such as "Category" it's understandable for that to create duplicates. Nonetheless, the issue has been…
-
@Nicole Mendoza-Oracle Thanks! I'll read up on N/search and see how I can develop this. Would I be able to test this script on a CMS page? Would I be able to run this same script online?
-
Hello @Mark Vargas-Oracle , That was the issue! was very strange because that field is only a regular field, didn't expect it to create duplicates.
-
Hello @Thea Hernandez-Oracle Thanks for the update! The TPL files should also appear on the manifest. I thought that as long as the files were created and added to the manifest, that would be all that I needed to do.
-
Hello @Richard James Uri-Oracle , Yes! I saved the templates under my theme Modules -> Facets -> Templates and deployed. I went to the config after reactivating the theme, and the templates didn't appear.
-
Hello @Leonard Mallare-Oracle Update: I managed to tuck the code into the facets_facet_browse.tpl file I used the {{keywords}} handlebar to get this to work! <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "url": "site.com", "potentialAction": { "@type": "SearchAction", "target":…
-
Hello Leonard, I think that I may have found what I needed, I went to the itemsearcher_item.tpl I'll try to integrate the JSON here. as I have the handlebar {{currentQuery}} { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.site.com", "potentialAction": { "@type": "SearchAction", "target":…
-
Hello @Leonard Mallare-Oracle Thanks! Sorry for the late reply. Been a crash course with learning everything. I managed to get it to work by adding my script into the development subtab, and then adding the script on the Shopping.ssp and Shopping-local.ssp pages. That seems to be my best workaround, next thing would be to…
-
Hello @Leonard Mallare-Oracle , I tend to add the script just below the dataview div. I did try to add it via script src defer and async, nothing. Do I need to run a script deployment for it to run on the PDP?
-
When doing a custom HTML form, thus adding your own HTML. You'll be able to add a stylesheet link rel. I have done this for all my online forms.
-
@Leonard Mallare-Oracle I managed to use CSS to override the max width on the bx-wrapper. However, I still am unable to successfully write a script that selects anything within the related.items childview.
-
Thanks! I know that the code works, but for some reason, if I am targeting something that's stemming from a childview, such as related.items, it won't work. Edit: I did use JQuery to edit the product custom fields childview, that worked! It seems to only be the related items childview. I also tried adding the script at…
-
Creating the script is the first thing, but where would I start? The articles give me something to work with, but it doesn't tell me where to begin.
-
Hello @Ivy Lopez-Oracle @Leonard Mallare-Oracle , Any guidance would be greatly appreciated. I can code up the TPL files and necessary HTML going. Could I follow the linkedin article and run it? This is what I have for the JS so far. var pdp = container.getComponent("PDP"); var iteminfo = pdp.getItemInfo(); if(pdp) {…
-
Hello @Leonard Mallare-Oracle , What about matrix items? would I be able to create a checkbox list with it? https://suiteanswers.custhelp.com/app/answers/detail/a_id/28202/loc/en_US
-
Thanks! Having the grid does indeed help very much. That's the one I am most interested in, was that we can at least establish a grid layout effectively and then work within it.