How to get the Log Details Event from a Publication GUID?

Hello,

We developed a reporting tool and I need to access to the log event details from the Publication Report output when the publication is in status failed. I found that there is a class named EventMonitor with a method GetEventDetail which requires the eventId as a parameter, my question is how do I get the eventId for a publication? Any other ideas on how to get the event details for publications?

emoji
Parents
  • Hi Damaris - Recently back from holiday...

    In short there is Language-level field FISHEVENTID on PublicationOutput objects.

    Some more background...

    The key cmdlet to know what data you can retrieve is: Get-IshTypeFieldDefinition | Out-GridView
    Or if you are an API guy it is Settings 2.5 RetrieveFieldSetupByIshType

    The cmdlet result will give you a view and might have lead you to 

    Trados Studio window showing the Get-IshTypeFieldDefinition command output in Out-GridView with a filter applied for ISHPublication. Two fields are visible: FISHEVENTID and FISHUNPUBLISHEVENTID with their descriptions.


    Some PowerShell ISHRemote code to get you going could be

    # All versions and publication outputs are returned
    $objects = Get-IshPublicationOutput -LogicalId GUID-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 

    # As EventMonitor is nothing more than centralized logging opened up over a user interface, it means that not all logging is there forever
    # In this case I know that some version/outputformat was recently published
    $objects[57].fisheventid

    # Passing this on 
    Get-IshEvent -MetadataFilter (Set-IshMetadataFilterField -Level Progress -Name EVENTID -Value $objects[56].fisheventid)

    Best wishes,
    Dave

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:05 AM (GMT 0) on 5 Mar 2024]
Reply
  • Hi Damaris - Recently back from holiday...

    In short there is Language-level field FISHEVENTID on PublicationOutput objects.

    Some more background...

    The key cmdlet to know what data you can retrieve is: Get-IshTypeFieldDefinition | Out-GridView
    Or if you are an API guy it is Settings 2.5 RetrieveFieldSetupByIshType

    The cmdlet result will give you a view and might have lead you to 

    Trados Studio window showing the Get-IshTypeFieldDefinition command output in Out-GridView with a filter applied for ISHPublication. Two fields are visible: FISHEVENTID and FISHUNPUBLISHEVENTID with their descriptions.


    Some PowerShell ISHRemote code to get you going could be

    # All versions and publication outputs are returned
    $objects = Get-IshPublicationOutput -LogicalId GUID-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 

    # As EventMonitor is nothing more than centralized logging opened up over a user interface, it means that not all logging is there forever
    # In this case I know that some version/outputformat was recently published
    $objects[57].fisheventid

    # Passing this on 
    Get-IshEvent -MetadataFilter (Set-IshMetadataFilterField -Level Progress -Name EVENTID -Value $objects[56].fisheventid)

    Best wishes,
    Dave

    emoji


    Generated Image Alt-Text
    [edited by: Trados AI at 4:05 AM (GMT 0) on 5 Mar 2024]
Children