Hi folks!
Could you please share your experience on how do you create REST API with InterSystems IRIS that uses bearer authentication?
How do you generate tokens? How do you maintain it (how much time tokens exist?).
Thanks in advance!
InterSystems IRIS is a Complete Data Platform
InterSystems IRIS gives you everything you need to capture, share, understand, and act upon your organization’s most valuable asset – your data.
As a complete platform, InterSystems IRIS eliminates the need to integrate multiple development technologies. Applications require less code, fewer system resources, and less maintenance.
Hi folks!
Could you please share your experience on how do you create REST API with InterSystems IRIS that uses bearer authentication?
How do you generate tokens? How do you maintain it (how much time tokens exist?).
Thanks in advance!
Ladies and gentlemen!
Is there a way (some secret call? ) to turn on a debug mode for a particular IRIS web app?
The reason is to log debug information in REST-API dispatch methods if the app is in debug mode.
Of course, I could use "a global", but if there is any standard way?
Hello,
We are connecting to our client's Intersys database with python3.8 on our Ubuntu 20.04.2 LTS, we are having trouble gettin the intersys.pythonbind module to work.
We are able to install the intersystems_irispython-3.2.0-py3-none-any.whl but, when we try to run the code we always get:
Traceback (most recent call last):
File "./get_well_life.py", line 4, in <module>
import intersys.pythonbind
ModuleNotFoundError: No module named 'intersys'
Please could you tell us what may be going wrong?
Please also feel free to ask for any additional infomation.
Thanks and regards!
Hi folks!
Consider you are logged in to a REST API in InterSystems IRIS with user A.
What is the way to log out in a browser?
E.g. to login with another user B?
Hi Community,
We're pleased to invite you to the online meetup with the winners of the InterSystems Interoperability contest!
Date & Time: Friday, October 29, 2021 – 12:00 EDT
What awaits you at this virtual meetup?
Hey Community!
New video is already waiting on InterSystems Developers YouTube:
⏯ Introducing the InterSystems IRIS Smart Factory Starter Pack for Manufacturing
Hi Community,
We're pleased to invite you to the upcoming webinar in Spanish called "Self-Service Analytics & Reporting"!
Date & Time: November 17, 4:00 PM (CET)
Speaker: @Alberto Fuentes, Sales Engineer, InterSystems Iberia
The webinar is aimed at Data Analytics or Business Intelligence professionals.
I want to write some code differently to run on Primary, Backup and DR depending upon their status.
If its Primary then do something, if Backup then something else and if DR then do something different from both Primary and Backup.

This can identified whether a system is Primary or Not Primary by calling below method
w $SYSTEM.Mirror.IsPrimary()
1 means Primary and 0 means Not Primary. But a Not Primary member may be a backup or a Async DR or a Async Reporting.
How to identify if a system is a DR or Backup or Reporting?
Why I love ObjectScript and why I think I might love Python More
I was looking at the thread of messages on the topic of "Performance when constructing a comma-separated string", and I started writing a response but got distracted, the page refreshed, and I lost my text. I couldn't spend the time rewriting my response, so I started writing this document instead.
I started writing MUMPS at the beginning of my career. I wrote very tight and dense code blocks where exercises such as the string example were authentic challenges.
One of our apps uses a class query to support a ZEN Report and works just fine in that report, producing the expected results every time. We’ve since migrated to InterSystems Reports and noticed that, for a report using the same class query, 100s of extra rows with the same column values appear at its bottom.
We eliminated InterSystems Reports as the source of the problem by recreating the same “extra rows” issue with an Excel spreadsheet calling the same class query as a stored procedure.
What was the issue?
I want to INSERT a record in a database using JDBC in OBJECTSCRIPT. At the same time, I want to obtain the insert ID. Is there a way to achieve this using the SQL Outbound adapter?
My code is something like this now:
Property Adapter As EnsLib.SQL.OutboundAdapter;
set sql = " INSERT INTO Prenotazioni_CUP "_
" (ID, cf
" VALUES (SEQTAB.NextVal, ?) "
set status = ..Adapter.ExecuteUpdate(.rs, sql, pRequest.cfAssistito)
Hi guys,
My client has a requirement to add a column of random numbers to the query result.
I wrote a function as below:
Class Utils.SqlUtility Extends %RegisteredObject
{
ClassMethod GetSomeNumber(intInput As %Integer) As %Integer [ SqlName = GetNumber, SqlProc ]
{
Return $R(intInput)
}
}
But in the returned sql result, every row share the same value, as below,
SELECT Utils.GetNumber('456'),
ID, Citizenship, DOB, FirstName, Gender, IDNumber, LastName, PatientNumber, PhoneNumber
FROM CDR.Patient
.png)
How may I refactor the function or sql to make the random value really random on each of the rows?
Thanks.
Hi community!
I want to introduce you a new powerful feature from our static code analyzer objectscriptQuality.
Each time a new IRIS version is released, you need to prepare a roadmap for migration in which you need to spend a lot of time on testing to find where your code is not accomplishing with the newer version. Or maybe you need your code to be compatible with multiple IRIS or Caché versions.
You can now simplify the task running the analysis for the different IRIS and Caché database versions, so you will get the failing code before you start to test.
How to enable mgr/irislib database in iris docker image?
If I start a default image, this database is not create
Hi
We have ODBC 32bit Encryption working on our database with a SSLDEFs.ini file. However 64 bit ODBC Encryption will not work and give generic error, same error if the ini file is not there for 32BIT.
We have copied the ini file to the 64bit folder? Any ideas please?
thanks
Hi.
Is it possible to trigger an event on .NET client (C#) from IRIS process? I'm using IRIS Native client to connect to IRIS server.
Regards,
Matjaž
We're hosting our Deltanji and Serenji user group session tomorrow - there's still time to register, if you haven't already.
We'll be showcasing some advanced features of Deltanji and Serenji in VS Code with time for a discussion - so feel free to bring along any problems you need help solving or share your feedback on our tools. We'd love to hear your thoughts. If you're interested in our tools this is a great chance to hear what others have to say, as well as asking your own questions.
Date: Wednesday, November 3rd
Time: 11-12pm EDT / 3-4pm GMT.
Let us know you'll be attending on Eventbrite.
We hope to see you tomorrow, but if you're unable to make it you can email me at laurelj@georgejames.com and I can share a recording of the session.
Hello everyone,
I'd like to export Ensemble globals, but without Ensemble messages, this way:
^^database>s list("Ens*.gbl,'Ens.Message*.gbl")=""
^^database>write $SYSTEM.OBJ.Export(.list, "/tmp/globals.xml")Documentation says that it could be done by adding an apostrophe, but it doesn't work for me - all Ens* globals are still exported.
What I'm doing wrong? Thanks!
Hi, does anyone know how to add a LINK to an ANALYTICS DASHBOARD? I'm getting an error and until now I could not find anyhing in documentation.
thank you for help.
to be more specific: I need to figure out how to create a .LINK type of entry into a folder so I can add it to the dashboard.
Hi Developers! As part of an internal company hackathon at InterSystems, I'd love community feedback on a few topics. Feel free to chime on any/all of these via comment or direct message to me.
Hello - basic question. Looking for sample code to parse inbound ACK messages. Messages are coming in a SOAP envelope. The ACKs will have MSH/MSA/ERR segments (other segments for QBP messages down the road). Looking at common, established way(s) to parse the messages HS would be a great help to get started on this. Thanks in advance.
In specifying a "WHEN" condition statement, I don't seem to be able call a function directly from this declaration, as the generator seems to get confused
In the graphical editor:
%request.GetValue("MRN"))=123453
(%request.GetValue("MRN"))=123453)
In the DTL directly:
Is there a way to ensure a certain global(s) are always in buffer ?!
Is there a method call to check if a global is in buffer ?

The Zachman Framework™ is an ontology - a theory of the existence of a structured set of essential components of an object for which explicit expressions is necessary and perhaps even mandatory for creating, operating, and changing the object (the object being an Enterprise, a department, a value chain, a “sliver,” a solution, a project, an airplane, a building, a product, a profession or whatever or whatever). Source: https://www.zachman.com/about-the-zachman-framework.
InterSystems is very pleased to announce the 2021.1 release of InterSystems IRIS Data Platform, InterSystems IRIS for Health and HealthShare Health Connect, which are now Generally Available to our customers and partners.
The enhancements in this release offer developers more freedom to build fast and robust applications in their language of choice, both server-side and client-side. This release also enables users to consume large amounts of information more effectively through new and faster analytics capabilities.
Hello everybody
I'm trying to send a XML file in a form-data like this, but is not working. Can anyone help me with the code?
.png)
This is my code:
Set RootMIMEPart = ##class(%Net.MIMEPart).%New()
Set BinaryMIMEPart = ##class(%Net.MIMEPart).%New()
Set stream = ##class(%FileBinaryStream).%New()
Set stream.Filename = pRequest.file
Do stream.LinkToFile(pRequest.file)
Set BinaryMIMEPart.Body = stream
// I already used "application/x-www-form-urlencoded", "application/xml", "application/x-object" in Content-Type
Do BinaryMIMEPart.
I have a workstation with a CACHE instance up and running.
On that same workstation there is also an instance of IRIS (fresh install). I would like to migrate manually the CACHE database to IRIS (ideally, all globals, routines and classes).
What I tried is to copy C:\InterSystems\Cache\mgr\CACHE.DAT to C:\InterSystems\IRIS\mgr\IRIS.DAT (after shutting down both instances) but it does not work.
I got the following message : (112) The service for the IRIS instance did not start.
Is there a better way ? (eg: using Portal or some API from command line).
Hi
How to install the WebGateway package without interactive mode ?
I need to install this package in apache container
Hello,
I dont know how to activate the production in this version, In cache was from install wizard but now i dont know
16:49:24.153:Ens.Director: Production 'REGINUSPKG.HubProduction' starting... 16:49:24.154:...PKG.HubProduction: ERROR <HSErr>ConfigurationNotActivated: Production cannot start - it needs to be activated
Thanks!
Hi,
I've started active use ISC VS Code extensions about a half year ago, seem to be used to use, and started to enjoy them :)
The documentation promises the
We were happy enough not to use, while used Studio Source Control menu to run some internal code checkup procedures. Is there any functional equivalent for this in VS Code: can I add custom menu items that should be backed with ObjectScript code to be started on server?