function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bryn JonesBryn Jones 

run javascript API with screen flow

Hello,

Can someone help me as to how i would trigger the following API JS script using a screen flow or visualforce page? 

https://developer.salesforce.com/docs/atlas.en-us.omni_channel_dev.meta/omni_channel_dev/sforce_api_console_lightning_login.htm

I will add this as a Login Flow, so when a user logs in they click another button on the login flow and it automatically logs them into the Omni Channel as Available.
VinayVinay (Salesforce Developers) 
Hi Bryn,

Check below references that can help you to include javascript in a flow

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8ogDSAR
https://salesforce.stackexchange.com/questions/329923/is-it-possible-to-run-js-from-either-apex-from-a-flow

Please mark as Best Answer if above information was helpful.

Thanks,