4 Replies · Latest reply on Sep 13, 2017 8:13 AM by Philippe Valette

    Function insertWithReferences is not allowed in scope "..."

      Good day all,

       

      Please refer to: http://wiki.servicenow.com/index.php?title=GlideRecord#Insert_Methods

      Can someone please explain to me why would GlideRecord.insert() be allowed, but the GlideRecord.insertWithReferences() is not allowed (even when the referenced object is in the same scope)?

      Is there a workaround for this, i.e. if I have form A, and I need to push to Form B, which has a lot of Form C children
      Form A could be seen "almost" as a console to the application.
      Form C has a reference to Form B, thus I can list all the children Record C's directly from Form B.

       

      Well that was the theory, designed a nice 3NF solution, but I cannot implement it now.