Inside Activate
Development
Correct way to use @import in script files
3 min
correct way to use @import to import a net dll file say for example system web services your code should be as below //@import system web services; to import an activate parameter say for example script parameter on root of distribution lists resource your code should be as below //@import=//resources/distribution lists/script note you should not have a space after @import when you are using an activate expression where as if you are importing a net dll file you should have a space after @import correct way to use @include the @include is used to reference another activate script typically on the same task for example the activate script that is used to terminate users using the delete user task is the deleteuserscript this script uses the @include to reference the deleteutilities script located in the delete user task, which contains a number of functions that can be re used rather than defining all these functions in the deleteuserscript //@include=/deleteutilities note ensure you only have a single / in front of the script you wish to include and no space after the @include difference between @include and @import when you use @include all the text from the referenced activate script file is appended and then compiled where as if you use @import, the code in the referenced script file is compiled separately there are two usages of @import one for a script and one for an existing dll if you @import a script then it is compiled to a dll and then used if you @import an existing dll then it is just used note @include should not be used unless there is a specific use case prefer using @import instead note do not leave any blank lines in between any includes and/or imports as the ones below the line break will not compile and will break any references e g line break on line 2 breaks the import for system management automation removing the line break fixed it