Hi @PeK ,
first get all FS-ids with QS Broken, then use
….
graphql_query = """
{allLogEvents(
factSheetId: "%s"
first: 1
eventTypes: QUALITY_SEAL_BROKEN
)
{
edges {
node {
id
newValue
createdAt
}
}
}
}
""" % (factsheetidd)
….
I did not find a solution with filtering by date. What I did, I added a field Quality seal last broken just visible to the accountable subscriber. I just query all factsheets with this QS broken and this date field empty and fill it by a daily scheduled job. Another job creates a reminder to the accountable if the data is above a configurable threshold. When a QS is approved the content of this file is deleted (search QS Approved and Quality seal last broken is not empty).
Best regards,
Carsten