Finding topic ID

Jonathan28
Giga Contributor

Hi

 

How do you find the sys_id for a topic in VA?

I want to get the current VA conversation using "sn_cs.VASystemObject.getTranscriptById(<conversation sysId>)"

But I can't seem to find the conversationID nor run the function at all.

 

Thanks

 

/Jonathan

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

I did try this a few months ago, though didn't found any vaSystem property or something for this. Ended up just adding a Script Variable containing the sys_id of the topic.

The sys_ids for the topics are actually the records in the sys_cs_topic table.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

I did try this a few months ago, though didn't found any vaSystem property or something for this. Ended up just adding a Script Variable containing the sys_id of the topic.

The sys_ids for the topics are actually the records in the sys_cs_topic table.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Jonathan28
Giga Contributor

Hi

 

Thanks. Finding the sys_id in the sys_cs_topic table worked but I am still not able to present the whole conversation in an easy to read format.
I have tried exploring the form layout in the sys_cs_topic table to see if any of the fields presents the conversation but no luck.

How did you present full conversation when you built it in your topic?

 

Thanks

Best,

Jonathan

I am getting "java.lang.NullPointerException" error when I put sys_id from any record in the sys_cs_topic table. Can you please help me how it did work for you?