Hello, Any idea of creating invocie group using s...
# general
r
Hello, Any idea of creating invocie group using suitescript 2.0?
Can anyone help me on this?
c
Ask in #C29HQS63G
r
Already posted it No one responded it
b
too low quality
you need to provide more information about what your attempt looks like and what problems you are having
r
@battk Thanks for your reply I am just trying to create invoice group using suitescript, but i didn't find Invoice Group record type under supported record types in the documentation. Is it possible to create invoice group record using suitescript?
b
that reads as you didnt even try using record.create
it does not take much to make that attempt
r
attached the sample code and her is the error I am getting. Provided customer id is valid one only. Customer is mandatory field while creating invoice group, so am trying to set customer as default values while creating invoice group record.
b
thats not how default values work
they are not a generic tool to set fields
there is a specific list of default values, and not all of them set field
that error is telling you that customer is not a supported default value
r
Yes, but i didn't find any example in the documentation or in sutie answers to set the default values for invoice group creation
Please provide if any sample available, thanks
b
again, same problem
you are trying to set customer using a default value
there is no such thing
you will find no documentation of such a thing, it does not exist
if you dont know how to use N/record, you should start at its documentation. its rather long so you may want to start at the examples to see how to set fields
c
I think you're getting confused in terminology. Customers are required, but when saving the record rather than at actual record.create() time. The answer to your question is basically "Do not set them using defaultValues".
r
I understood that part, but i need to get the sublist data to apply the invoices.
Without setting default value how cna i get sublsit data to apply the invoices in invoice grouping
Here is the screenshot of group invoices, here am trying to set customer value and trying to get the invoices mapped to that csutomer
b
thats actually a bulk processing page
thats not what N/record will represent
r
Which module I need to go for to create this bulk processing invoice group
b
bulk actions actually have really bad suitescript support, they are lumped together in the N/task Module
lucky for you your error messages suggests that you can create an invoice group if you can learn to set the customer field
you would probably need to set a bunch of other fields too, depending on what you need to do