Skip to main content
Solved

How to determine which platform a user is using during runtime?

  • July 13, 2026
  • 2 replies
  • 21 views

Forum|alt.badge.img+3

We have some process flows which open a new document. Since we are transitioning to Universal, we have a Windows variant and a Universal variant of the subject. Now, I need to determine in the process flow which variant to open based on the platform that is being used. Can I get this data during runtime?

I only need this solution temporarily until the Windows version has been made inactive, but still it would lead to disruption of work if I cannot control this while both versions are available.

If there is another solution I would also like to hear it.

Best answer by Mark Jongeling

Hi Robin,

That is possible if you have a SQL Server model. The session context variables can be used for this purpose as Indicium sets more session variables than Windows GUI (2-tier) does.

This code you can use to determine the user is using the Windows GUI (2-tier).

-- Open the Windows GUI variant of the screen when not using Indicium
if SESSION_CONTEXT(N'tsf_appl_id') is null
begin
set @windows_path = 1
set @universal_path = 0
end
else
begin
set @universal_path = 1
set @windows_path = 0
end

Replace @windows_path and @universal_path with the correct process step ID's. You will need to tele the process flow to either continue to the Open document specifically for the Windows GUI, or continue with the Universal GUI variant.

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • Answer
  • July 13, 2026

Hi Robin,

That is possible if you have a SQL Server model. The session context variables can be used for this purpose as Indicium sets more session variables than Windows GUI (2-tier) does.

This code you can use to determine the user is using the Windows GUI (2-tier).

-- Open the Windows GUI variant of the screen when not using Indicium
if SESSION_CONTEXT(N'tsf_appl_id') is null
begin
set @windows_path = 1
set @universal_path = 0
end
else
begin
set @universal_path = 1
set @windows_path = 0
end

Replace @windows_path and @universal_path with the correct process step ID's. You will need to tele the process flow to either continue to the Open document specifically for the Windows GUI, or continue with the Universal GUI variant.


Forum|alt.badge.img+3
  • Author
  • Sidekick
  • July 13, 2026

Cool, thanks! Looks like it will work for me.

Thank you for the quick reply