Connect Sage EM with .Net (C#)

SOLVED

How can I connect Sage EM and  .Net with a user authentication?

Before V11 there was authentication available:

cc.codeUser = "ADMIN";                      // X3 user
cc.password = "";                           // X3 password

And now in V11, how can I do it?

Thanks!

Parents Reply
  • +1 in reply to Mylena Santos
    verified answer

    You can use the filpath instruction.  Below is an example.  The .exe resides in a volume (directory) within the current endpoint on the Sage EM server, called INT_PGM.  So it would be something like C:\Sage\X3V11\folders\SEED\INT_PGM, and the .exe would be there.  I am passing a single parameter in PARMS.  In this case, it is a string with two fields separated by a "^".

    Local Char CMD(250)
    Local Char PARMS (50)
    PARMS = [L]VCRNUM+"^"+num$([L]QTY)
    CMD = filpath("","","")+"\INT_PGM\Program\NetApp.exe "+PARMS
    System RESULT = CMD

Children