This topic contains 1 reply, has 0 voices, and was last updated by samzad 7 years, 8 months ago.

  • Author
    Posts
  • #6435

    AnaCampoVe

    Hi team!!

    We are trying to update, via SuiteTalk, the external IDs for the subsidiaries that we have configured. To do that, we have written the following lines of code:

    Code:
    RecordRef subsidiaryRefRec = new RecordRef
    {
    internalId = “1”,
    type = RecordType.subsidiary,
    typeSpecified = true
    };

    Subsidiary sub = (Subsidiary)_service.get(subsidiaryRefRec).record;
    sub.externalId = “1”;

    WriteResponse response = _service.update(sub);
    When it is executed, we get an error in the WriteResponse saying: “You do not have permissions to set a value for element addrtext due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.”

    We are login with Administrator roleId (3), so I don’t think there must be a permissions issue. What can be happening?

    P.S.: We are doing the same process with currencies, and we have been able to update the external IDs.

    Thanks in advance,

    Ana Campo
    This is a cached copy. Click here to see the original post.

  • #6436

    samzad

    What fields you are trying to change? – some fields cannot be changed when created, such as currency, country, edition and parent subsidiary.

You must be logged in to reply to this topic.