This topic contains 3 replies, has 0 voices, and was last updated by winsonchens 6 years, 9 months ago.

  • Author
    Posts
  • #21285

    winsonchens

    I have a RESTLet API in Netsuite system. But it'll take 1 minute or more time when the other system invoke it.

    So I want to return a value at once when this API is be invoke and then this API will doing the other things. It's mean the whole processes is running on asynchronous.

    How should we do?
    This is a cached copy. Click here to see the original post.

  • #21286

    Olivier Gagnon NC

    Have your RESTlet return immediately whatever value you want, then have the RESTlet offload remaining execution to a scheduled script.

  • #21287

    winsonchens

    It just want to tell invoker the message has received and then the RESTLet API will create some transactions. Once it's finished. It'll tell the invoker the result.

    it's not execution a schedule script.

  • #21288

    winsonchens

    I know the script 2.0 has a promise function on https moudle it can work on asynchronous. But it's only work on client side.

You must be logged in to reply to this topic.