theapsgroup/freshservice
steampipe plugin install theapsgroup/freshservice

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_announcement
where
state = 'scheduled';

List announcements created by a specific agent

select
a.title,
a.body,
concat(ag.first_name, ' ', ag.last_name) as agent
from
freshservice_announcement a
left join freshservice_agent ag on a.created_by = ag.id
where
ag.email = 'example@agent.com';

Schema for freshservice_announcement

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
additional_emailsjsonbArray of additional email addresses to which the announcement needs to be sent.
bodytextBody of the announcement.
body_htmltextBody of the announcement in HTML format.
created_attimestamp with time zoneTimestamp when the announcement was created.
created_bybigintID of the agent that created this announcement.
departmentsjsonbArray of Department IDs that can view this announcement.
groupsjsonbArray of Group IDs that can view this announcement.
idbigint=ID of the announcement.
is_readbooleanTrue if the logged-in-user has read the announcement.
send_emailbooleanTrue if the announcement needs to be sent via email.
statetext=State of the announcement - (active, archived, scheduled).
titletextTitle of the announcement.
updated_attimestamp with time zoneTimestamp when the announcement was last updated.
visibilitytextVisibility of the announcement - (everyone, agents_only, agents_and_groups).
visible_fromtimestamp with time zoneTimestamp at which the announcement becomes active.
visible_totimestamp with time zoneTimestamp until the announcement is active.