Discussions
Multiple Library files question
I just uploaded a new .js file that contains SHA hashing functions, and a new SuiteScript file (myContactScript.js) that is triggered when a contact is edited. The User Event script attached to contacts was then updated to add "sha256.js" as a second library, along side 'myLibrary.js'.
When I edit my contact the SuiteScript in both myContactScript and myLibrary seems to work until myContactScript tries to use a function found in sha256.js - and then it reports that 'sha256_digest' is not defined.
From this it seems that the second library file isn't being found/used.
As a test I copied the entire script from sha256.js and pasted it into myLibrary.js, re-edited my contact and everything seemed to work just fine.