Hello SDF developers, Have you started to use the...
# sdf
z
Hello SDF developers, Have you started to use the WebStorm AI tool? From my experience the life going to be easier with it 🙂
e
I haven't yet, but I am definitely curious about it
s
@Zoran R-DATAGRAM in what ways do you mean? I must see to believe!
e
Yes I would love to hear about how you're using it
z
speeding up searching for examples
👀 1
e
How accurate have you found the code to be? Do you have to mess with it much, or does it come out reasonably functional? When I played around with copilot, it would spit out very real-looking but very broken code
z
Let me say, my impressions are the same as yours. Mostly (ha, I am lazy developer) used for generating code
Copy code
// iterate through pfaTransactions and initiate workflow
            pfaTransactions.forEach(transaction => {
                // code logic for each transaction
                
                const parentPayment = transaction.getValue({name:'custrecord_2663_parent_payment'});

                log.debug({
                    title : 'parentPayment',
                    details : parentPayment
                });

                const options = {
                    // The internal ID of the record
                    recordId: parentPayment,

                    // The type of the record
                    recordType: 'VENDORPAYMENT',

                    // The internal ID of the workflow
                    workflowId: 'customworkflow_levi9_wf_payment_email',
                };

                const workflowId = workflow.initiate(options);

                log.debug("workflowId: ", workflowId);

            });
b
I have used ChatGPT in the past and the results have always been really poor if not plain wrong. The conversation usually end up with the AI saying "you are right it is not possible to do it the way I have explained". 🤷‍♀️
s
It’s pretty surface level stuff I agree as soon as you go a little specific it’s useless. Maybe there isn’t enough public NetSuite code. What could be interesting in future is NetSuites own AI scripting capabilities as they surely have access to every SuiteScript ever deployed
e
In my mind it sounds interesting/fun to set up and train a local LLM on SuiteScript, but in practice it's just not a high enough priority for me.