This topic contains 4 replies, has 0 voices, and was last updated by k_dunc 7 years, 11 months ago.

  • Author
    Posts
  • #5666

    k_dunc

    Hi there,

    Using SuiteScript 1.0, is it possible to create a new User Note record for a Transaction record that has not yet been submitted? I have a Client Script, which, in my onSave function, I’d like to create a new User Note in a new Assembly Build record (i.e., the record is yet to be created) when a given criterion has been met. Is this possible?

    Thanks heaps,

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

  • #5667

    Olivier Gagnon NC

    No, I do not believe so. Child records of all kinds need the record to exist to be able to refer to the internal ID.

  • #5668

    k_dunc

    Thanks for that Olivier. I sort of figured that. Any suggestion then on how to trigger the creation of a User Note once the Transaction record has been saved? Clearly the User Note’s author has to be the user whom created the Assembly Build. Is this going to be a User Event Script where I’d then need to add my criterion into?

  • #5669

    david.smith

    Olivier is correct. The record must be saved before anything can be attached to it.

    My suggestion would be to create a dynamic hidden field on record load. When you save via the client script you can populate that field and on after submit you can create the note from the field value.

  • #5670

    k_dunc

    Lovely. Great suggestion David. Thank you.

You must be logged in to reply to this topic.