Exporting Notes¶
Notes can be found via the GraphQL API.
Strategy¶
Find all the assets in the organization. For each asset, use the following GraphQL query to find all the notes on that asset:
Query
query ExportNotes($assetId: ID!, $start: Time!, $end: Time!) {
asset(id: $assetId) {
events(type: NOTE offset:0 limit:100 startTime: $start endTime: $end) {
eventTime
message
... on NoteEvent {
isCaseMessaging
}
paginationDetails {
count
limit
offset
total
}
}
}
}
See the GraphQL documentation regarding the use of pagination.
Considerations¶
- Organizations with a large number of assets
- Determining start and end time based on knowledge of when the asset was commissioned