Hi all, how do we set the field "requestreadreceip...
# suitescript
h
Hi all, how do we set the field "requestreadreceipt" when sending an email? I've been trying to load a customer record and set the field "requestreadreceipt" to true but it's not doing it. Not sure what else am i missing? TIA
Copy code
let customerRec = record.load({
                    type: 'customer',
                    id: customerId
                });
customerRec.setValue({
         fieldId: 'requestreadreceipt',
         value: true
      });
a
I don't think there's a way to do this in suitescript.
requestreadreceipt
isn't a field on the customer record, its a field on the message record. there's no documented way to set that using the email module or render module, so I don't think its possible.
h
I see, thanks for your response @Anthony OConnor
n
If it's on the message record (which I don't see it on the records browser...), in theory you could add a User Event script to the message record and set it when the message is created.
👍 1
h
@NElliott ah thanks for giving the idea, i'll try that out