Identify if user opens a portal page from MS teams

Uttara
Tera Contributor

Hello,

 

We have enabled the custom portal to be available on MS teams. We need to identify of the user opens the portal page(s) using MS teams.

 

3 REPLIES 3

Ratnakar7
Mega Sage
Mega Sage

Hi @Uttara ,

 

You can query JSON Blob table with device_type as Teams. (PFB screenshot)

https://your_instance_name.service-now.com/interaction_json_blob_list.do

Ratnakar7_2-1703398634514.png

 

Ratnakar7_1-1703398534875.png

 

Also, In the script  you can use “vaContext.devicetype == Teams” as a condition to identify specific interaction from MS Teams.

{ if(vaContext.deviceType === 'Teams'){
//
}


Thanks,
Ratnakar



 

Uttara
Tera Contributor

Thank you @Ratnakar7 for the reply!

Is this specific to virtual agent? Can this be accessed from portal widget or header/footer?

 

I need to write logic in portal widget for identifying if user is accessing portal from teams or desktop

 

Uttara
Tera Contributor

Hi @Ratnakar7,

 

Thank you for the reply!

Is this specific to virtual agent or can we access this from portal widgets?

I need to write the identifier logic in widget.

 

Thanks,

Uttara