netsuite icon indicating copy to clipboard operation
netsuite copied to clipboard

Way to mark a Custom Field as Read Only

Open apbendi opened this issue 12 years ago • 6 comments

There ought to be a way to tag a custom field as read only. If you "get" a record with a read only custom field and then "update" it, the result is an error. That is because your update is technically trying to set the read-only custom field to the same value it got.

A workaround for now is to remove read only fields manually each time you get a record before updating said record.

apbendi avatar Apr 24 '13 14:04 apbendi

I wonder if the ignoreReadOnlyFields preference would solve this issue http://mulesoft.github.io/netsuite-connector/java/com/netsuite/webservices/platform/messages_2013_2/Preferences.html

iloveitaly avatar Oct 22 '14 14:10 iloveitaly

What exactly is this Prefrerences class? Can you include it in any given SOAP request when operating with another record? Might do the trick- should give it a try.

On Wed, Oct 22, 2014 at 10:17 AM, Michael Bianco [email protected] wrote:

I wonder if the ignoreReadOnlyFields preference would solve this issue http://mulesoft.github.io/netsuite-connector/java/com/netsuite/webservices/platform/messages_2013_2/Preferences.html

Reply to this email directly or view it on GitHub https://github.com/RevolutionPrep/netsuite/issues/22#issuecomment-60091370 .

apbendi avatar Oct 22 '14 14:10 apbendi

Hi,

Were you able to get this working?

Is there a way I can set it in the config? I can see there is a soap_header portion of the configuration, but I'm unsure how to use it.

Thanks.

tspen avatar Jan 16 '15 04:01 tspen

Link 404s now.

drewish avatar Jun 30 '15 19:06 drewish

Took me a little head scratching but here's how you'd set the soap header from the config:

NetSuite.configure do
  # ...

  soap_header(
    'platformMsgs:preferences' => {
      'platformMsgs:ignoreReadOnlyFields' => true,
    }
  )
end

drewish avatar Jun 30 '15 19:06 drewish

Thank you so much!

tspen avatar Jul 01 '15 05:07 tspen