Skip to main content
Member
Jan 19, 2023 7:47 AM UTC

Business Rules in Visual Studio

Is it possible to create rules in Visual Studio?

22 replies

Veteran
Jan 19, 2023 9:43 AM UTC

Hi Wikus,

Yes it is possible in Visual Studio 2019/2022 and you can add the OS references for intellisense.
Now if you talk about VS Code it is far from great, but it is due to VS Code itself and intellisense will be trouble...
Hope it helps
Nic

WikusAuthor
Member
Jan 19, 2023 9:45 AM UTC

Thanks Nic.

Veteran
Jan 19, 2023 10:25 AM UTC

Hi Jack. 
VS Studio can save into GIT. Then with an api you can retrieve the BR from GIT directly into OS. Just add a Dashboard on the top of that and job done. 
Now, there are some disadvantages :
- You need someone that manages GIT.
- This approach is slower if you need to simple add a simple thing in the BR.

So, the answer is Yes and No. 🙂

Cheers

Contributor
Jan 19, 2023 6:50 PM UTC

Would you be able to share a sample of a BR used to pull from GIT into OS?

Veteran
Jan 20, 2023 9:52 AM UTC

Hi db_pdx!
I do not have the BR for it directly - but you will have 2 challenges. One being more complicated then the other.

The first one is the api call to GitHub (or GitLab or anything else).
As an example, you will have few variables to pass on the api URL : 
- GitOwner
- GitRepo Name
- Gitpath which is in other words the name of the file in git repo.
- Token from GitHub.
Once you have that, you do your api call like any normal api call.... 

The second challenge is adding the results of the call directly in OS. I would suggest to generate an XML load as at least by using that you use the native OS functionnality. So this challenge is more complex as you need to turn the call from GIT into an OS XML. You would probably need other variables specific to OS in your dashboard (security among others).

Have a good week end db_pdx!

 

RobbSalzmann
Employee - Advisor
Employee - Advisor
Dec 29, 2025 3:43 PM UTC

This is the approach I would take, adding that the XML be loaded directly via API driven process that connects directly to the source repo.  The fewer steps in the user's hands, the better for governance and risk mitigation. 

OS already has code that generates the XML in another utility that generates VS projects based on assemblies.  Start there.

Employee - Sage
Jan 20, 2023 10:10 AM UTC

For the record, I am aware that the Application Control Manager solution team is aware this is a bit of a sore problem, so we might get something to address it eventually...

Contributor
Apr 26, 2024 6:11 PM UTC

Jack, do you have any more current information about ACM and GitHub integration?  I'm getting these questions again in classes from students.

Employee - Sage
Nov 25, 2025 4:31 PM UTC

We have something in the pipeline that hopefully will make it easier to interact with any version control system (or AI, or any other developer tool on one's machine...). Pm me if you're interested in having an early look.

Member
Nov 24, 2025 1:09 AM UTC

You guys have what ya need.  

WikusAuthor
Member
Nov 24, 2025 6:50 AM UTC

Thank you very much, exactly what I was looking for!

WikusAuthor
Member
May 25, 2026 5:55 AM UTC

Is it possible to connect the new Developer Studio to a local OS installation? I can't get it connected.

Employee - Advisor
May 25, 2026 7:44 AM UTC

Hi Wikus​ 

Developer studio only works on environments that use OneStream Identity Server (OIS).

This is documented in the solution.

Hope this helps clarify 

Solution Announcement: OneStream Developer Studio | OneStream Community

Sam