freshservice_agentfreshservice_agent_rolefreshservice_announcementfreshservice_assetfreshservice_asset_componentfreshservice_asset_contractfreshservice_asset_typefreshservice_business_hourfreshservice_changefreshservice_change_notefreshservice_contractfreshservice_contract_typefreshservice_departmentfreshservice_locationfreshservice_problemfreshservice_problem_notefreshservice_problem_taskfreshservice_problem_timeentryfreshservice_productfreshservice_purchase_orderfreshservice_releasefreshservice_release_notefreshservice_release_taskfreshservice_release_timeentryfreshservice_requesterfreshservice_servicefreshservice_sla_policyfreshservice_softwarefreshservice_software_installationfreshservice_software_userfreshservice_solution_articlefreshservice_solution_categoryfreshservice_solution_folderfreshservice_ticketfreshservice_ticket_conversationfreshservice_ticket_taskfreshservice_ticket_timeentryfreshservice_vendor
Table: freshservice_announcement
Obtain information about Announcements from the FreshService instance.
Examples
List all announcements
select *from freshservice_announcement;
List announcements scheduled for the future
select *from freshservice_announcementwhere state = 'scheduled';
List announcements created by a specific agent
select a.title, a.body, concat(ag.first_name, ' ', ag.last_name) as agentfrom freshservice_announcement a left join freshservice_agent ag on a.created_by = ag.idwhere ag.email = 'example@agent.com';
Schema for freshservice_announcement
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
additional_emails | jsonb | Array of additional email addresses to which the announcement needs to be sent. | |
body | text | Body of the announcement. | |
body_html | text | Body of the announcement in HTML format. | |
created_at | timestamp with time zone | Timestamp when the announcement was created. | |
created_by | bigint | ID of the agent that created this announcement. | |
departments | jsonb | Array of Department IDs that can view this announcement. | |
groups | jsonb | Array of Group IDs that can view this announcement. | |
id | bigint | = | ID of the announcement. |
is_read | boolean | True if the logged-in-user has read the announcement. | |
send_email | boolean | True if the announcement needs to be sent via email. | |
state | text | = | State of the announcement - (active, archived, scheduled). |
title | text | Title of the announcement. | |
updated_at | timestamp with time zone | Timestamp when the announcement was last updated. | |
visibility | text | Visibility of the announcement - (everyone, agents_only, agents_and_groups). | |
visible_from | timestamp with time zone | Timestamp at which the announcement becomes active. | |
visible_to | timestamp with time zone | Timestamp until the announcement is active. |