This should do it
String cnctName =$Kernel.SystemPreferences.GetPrefGeneral( 'DftConnection' )
Assoc prgAssoc =$LLIApi.PrgSession.CreateNewNamed( cnctName, { "Admin", undefined } )
Dynamic prgCtx = prgAssoc.pSession
Use the new prgCtx from then on.
PhilF
________________________________________________________________________________________________________ Hans Stoop Senior Consultant, Global Services
Open Text Technopark II Werner-von-Siemens-Ring 20 85630 Grasbrunn Germany Phone: +49 (0) 89 4629 1626 Mobile: +49 (0) 172 6770120 Fax: +49 (0) 89 4629 33 1626 Email: hans.stoop@opentext.com Web site: http://www.opentext.comPlace of Incorporation / Sitz der Gesellschaft: Open Text GmbH, Werner-von-Siemens-Ring 20, 85630 Grasbrunn, Germany | Phone: +49 (0) 89 4629 0 | Fax: +49 (0) 89 4629 1199 | Register Court / Registergericht: M?nchen, Germany | Trade Register Number / HRB: 168364 | VAT ID Number /USt-ID: DE 114 169 819 | Managing Director / Gesch?ftsf?hrer: John Shackleton, Walter K?hler
This e-mail is protected by domestic and international copyright laws and treaties and is the property of Open Text Corporation, it may contain confidential and/or trade secret information of the Open Text Corporation and/or its subsidiaries (OTC), and may be subject to legal privilege in favor of OTC. This e-mail may only be lawfully received, accessed, displayed on a computer screen, printed, copied, and/or used by the specific addressee(s) named above (?Authorized Recipient?) for the purpose for which it was sent by OTC. All other rights and licenses to this e-mail are fully reserved to OTC. If you are not an Authorized Recipient, you are required to immediately delete this e-mail in its entirety without printing, copying, using, and/or re-transmitting this e-mail, either in whole or in part. The transmission of this e-mail by OTC is not to be construed as a waiver by OTC and/or the individual sending this e-mail on behalf of OTC of any of their respective rights or privileges at law or otherwise, howsoever arising.