InitializeWithID never returns outcome = 1 for EMIS Web Partner API

Hi everyone,
I’m working on an EMIS Web Partner API integration using the COM object (EM_PACC.PatientAccessEMISWebV4_4) and I’m having trouble with the initialisation flow.
According to the documentation, InitializeWithID should return:

  • Outcome = 1 → “Successful initialise awaiting logon”
  • Outcome = 4 → Auto‑login successful
  • Other values for errors
    However, in my environment InitializeWithID never returns Outcome = 1, which means I cannot proceed to the Logon step. I’m trying to understand why this is happening and whether there are configuration requirements that affect this behaviour.
    Here is a simplified version of the PowerShell call I’m using
    $ok = $api.InitializeWithID(
    2, # EMIS Web
    “”, # API endpoint
    “”, # uci (not used)
    “”, # volumeGroup (not used)
    “”, # Organisation ID
    “”, # SupplierID / ProductID
    [ref]$vcdb,
    [ref]$productName,
    [ref]$version,
    [ref]$loginId,
    [ref]$apiError,
    [ref]$outcome,
    [ref]$sessionId
    )

My questions:

  • Under what conditions would InitializeWithID not return outcome = 1, even when the SupplierID and Organisation ID are correct?
  • Are there scenarios where EMIS Web will only return outcome = 4 (auto‑login) or an error, but never outcome = 1?
  • Are there client‑side configuration requirements (e.g., EMIS Web login state, API password setup, product activation) that influence this behaviour?
  • Is there a way to force the API to require manual Logon instead of auto‑login?
    Any guidance or clarification would be greatly appreciated.
    Thanks in advance.

Hello Jegatheeswaran,

I am sorry it has taken this long to get back to you. Thank you for your patience. However, because this functionality sits within an EMIS product and not an NHS product, it isn’t something we’re able to help with. Apologies that we can’t be of more assistance here.