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

  • Author
    Posts
  • #956

    johnsongilpp

    Hi ,

    Does anyone know what the equivalent to

    response.setContentType(‘JAVASCRIPT’) in suitescript 2.0? I’m trying to write a JSON object to an external application using a backend suitelet. Thanks
    This is a cached copy. Click here to see the original post.

  • #957

    michoel

    I think the way to do it is:

    Code:
    serverResponse.setHeader({ name: ‘Content-Type’, value: ‘application/json’ });

You must be logged in to reply to this topic.