Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
bug with setting record and recordtype fields on a message record
As an ugly, embarrassing and last-ditch-effort hack to be able to attach a message to a custom record from Web Services I devised the following plan:
[LIST=1]
[*]Create message and attachment in web services (easy)
[*]Insert special text into the body of message (to be parsed by a SSS) (EG: ##ATTACHTORECORD_<recordTypeID>_<recordID>##)
[*]SSS UE parses record type ID and record id from message
[*]SSS UE sets message's 'record' and 'recordtype' fields (listed in the docs as supported!)
[*]SSS UE scrub the BS "special text" from the message and allow it to save
[/LIST]
Now, it's not pretty, but as far as I can tell (and have been told) I have no other options.
Steve Klett | Senior Developer
NetValue Technology