Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Sebastiaan Draaisma
    Connect PHP transaction log entryAnswered
    Topic posted December 4, 2018 by Sebastiaan DraaismaBlack Diamond: 60,000+ Points, tagged Connect PHP 
    18 Views, 7 Comments
    Title:
    Connect PHP transaction log entry
    Summary:
    Create a transaction log entry through Connect PHP
    Content:

    Does anyone know if it's possible to use Connect PHP to create a custom log entry in the transaction table? I'm unable to find any documentation regarding this so I assume it's not possible but hope to be proven wrong :-)

    Version:
    18C

    Best Comment

    Robert Surujbhan

    Hi Sebastiaan - no, the core Transactions table is not exposed in the CCOM for adding new records.  It is, however, one of the read-only managed tables, so using Connect PHP you can easily retrieve information from it using ROQL.

    For custom logging, you can always create a custom object with ID-based parent relationships to standard objects, and then use CPHP to write into it?

    Comment

     

    • Robert Surujbhan

      Hi Sebastiaan - no, the core Transactions table is not exposed in the CCOM for adding new records.  It is, however, one of the read-only managed tables, so using Connect PHP you can easily retrieve information from it using ROQL.

      For custom logging, you can always create a custom object with ID-based parent relationships to standard objects, and then use CPHP to write into it?

    • Sebastiaan Draaisma

      Thanks Robert.
      Yes, I think that will be the way to go.

    • Vlad

      Hey Sebastiaan,

      Actions performed through ConnectPHP (create, update, status change etc) create entries into the "transactions" table just like any other source. If the action is performed on a custom object, a corresponding entry would be created in the co_trans table. Just like Robert said though, you can always log to a custom object or also to a file:

      Answer Link: Adding custom logging to your CPHP customizations

      Hope this helps,
      Vlad