Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Showing announcements in NOW Mobile App

Subhajit Mukhe1
Kilo Expert

Hi,

I currently have a requirement to display Announcements in NOW mobile app.

Anyone having any approach in mind?

I have tried by creating an item section and then added a list applet to that section, eventually creation item stream segments and so on. I got stuck while creating the master item for Announcement  table as in the master item, we need an item view which is written in JSON and I am not able to create it.

Any idea how can I create an item view for Announcement table. If not possible, what all other options do I have so that I can display announcements in NOW mobile.

Any help would be appreciated.

11 REPLIES 11

Vishakha
Mega Guru

Hi,

Refer below link,

https://community.servicenow.com/community?id=community_question&sys_id=573e7a311b515c50ada243f6fe4b...

 

If it helps then please mark my answer Correct and Helpful.

Vishakha

Roopa9
Kilo Contributor

Hi Subhajit,

 

Were you able to add announcements on Now Mobile App successfully?

I also have same requirement, could you please share the details if you found solution for this.

 

Thanks,

Roopa

Hi Roopa,

 

Please follow these steps, these will surely help:

  • Navigate to System Mobile->Applets.
  • Create a applet – Announcements of type List Screen.
  • Create an Item Stream Segment - Announcements Item Stream Seg.
  • Open the Item Stream Segment record, create an Item Stream - Announcements Item Stream.
  • Open the item stream record.
  • Navigate to System Mobile -> Data items in a new tab.
  • Create a data item - Announcement Data Item.
  • Set condition type as declarative, table as Announcement and query condition as active = true. Save.
  • Navigate back to item stream record and select the data item created.
  • Open Item View (sys_sg_item_view) table in new tab.
  • Create an item view - Announcement Item View.
  • Set table as Announcement, set item view JSON in order to display the items properly in the app. Save.
  • Navigate to System Mobile->Mobile UI Styles in a new tab.
  • Create Announcement Style A for announcements with display style normal, adding a background colour of blue.
  • Create Announcement Style B for announcements with display style urgent, adding a background colour of red.
  • Create Announcement Style C to add white font to the announcement title.
  • Create Announcement Style D to add white font to the announcement summary.
  • Navigate Back to the Item View page and add the styles created. Save.
  • Open Master Item (sys_sg_master_item) table in a new tab.
  • Create Announcement Master Item record.
  • Add Announcement Item View in the item view field.
  • Set condition active = true. Save.
  • Navigate back to the Announcement Item Stream page.
  • Add the Announcement Master Item created. Save.
  • Navigate to System Mobile ->Applets in a new tab.
  • Create an applet - Announcement Form of type Form Screen.
  • Set the Announcement data Item in the data item field. Save.
  • Navigate to System Mobile ->Applets in a new tab.
  • Create an applet – Announcement details of type Details screen.
  • Set table as Announcement.
  • To the Screen Fields related list add title, summary and details URL fields. Save.
  • Navigate to the Announcement form applet.
  • Add Announcement details applet to the Form screen segments section. Save.
  • Navigate to the Announcement Master Item.
  • Add Announcement form to the embedded screen field. Save.
  • Create an ACL announcement.none for providing read access to end users.

 

Hi Subhajit,

 

I have created Applet from Studio and it worked. ACL was missing, as you mentioned i created ACL and i was able to see 'Announcements' as an end user. 

Somehow Font color UI Style is not working for Item view. 

Thank you so much for the steps. 

 

Thanks,

Roopa Reddy