Hi all, when i am using the below what am i suppos...
# suitescript
k
Hi all, when i am using the below what am i supposed to use for the type?? I am getting errors when using lead or entity. nothing much in the documentation to tell me what to use.
Copy code
var mergeResult = render.mergeEmail({
                        templateId: 218,
                        entity: {
                            type: 'entity',
                            id: leadRecordId
                        },
                        recipient: null,
                        customRecord: null,
                        supportCaseId: null,
                        transactionId: null
                    });
n
I think these are the types you can provide: ■ Contact ■ Case ■ Customer ■ Employee ■ Partner ■ Vendor ■ All transaction types ■ All custom records
So you may want to use customer instead of lead
k
i'll try customer then. havent tried that one yet.
Well that was bloody annoying.
Customer worked.
👍🏻 1
nothing in the SS2.0 docs about which types can be used.
n
NS documentation is mostly like that. Hard to say you would find specific things. Specially when considering developmental aspects. Or even functional.
k
Stoopid!!
n
https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4175410855.html&whence= Just so you know. I referred the Help center. Irritating as it gets.