Question Kurro Lopez · Apr 9 Convert %Stream.GlobalBinary to Base64 Hi community, I'm calling to a API that it is retrieving the content of a file as Content of response. I'm catching the binary but I need to convert this Stream to a Base64 string. I'm trying to convert a %Stream.GlobaBinary to a Base64 string using the following code, but it doesn't work. #API #JSON #Caché #InterSystems IRIS 0 6 0 103
Question Kurro Lopez · Mar 15 Event onPostDispatch %CSP.Rest or similar Hi all, For a requirement of the customer, we have a BS Rest api with a lot of methods, we need to get the IP of the caller, the method and what is the time that the API has taken to process. I've found the event onPreDispatch where I can take the IP, ClassMethod, etc.. I'm using a global variable to save this information. #API #Business Service #ObjectScript #REST API #InterSystems IRIS 0 5 0 67
Article Kurro Lopez · Mar 3 5m read How to send messages to Microsoft Teams Hi community, The aim of this article is to explain how to create messaging between IRIS and Microsoft Teams. In my company, we wanted to monitor error messages, and we used the Ens.Alert class to redirect those error messages through a Business Operation that sent an email.The problem was that we sent those error messages to a support account where there were many emails. We wanted something specific for a specific team. So we investigated how to make these messages reach the development team directly and they could have, in real time, a notification of an error in our production.In our company we use Microsoft Teams as a corporate tool, so we asked ourselves: How could we make these messages reach the IRIS development team? #Business Operation #Monitoring #Tutorial #InterSystems IRIS Open Exchange app 29 14 6 460
Question Kurro Lopez · Feb 12 How to get the Job id for a BS API Rest for debug? Hi all, As you know, it is very complicated to debug a Business Service Rest API because the object is created when the applications receive a request, so we cannot have the JobId that we can use to debug. https://docs.intersystems.com/iris20211/csp/docbook/DocBook.UI.Page.cls?... So, I'm trying to get the JobId when the class is being created, write a trace in OnInit() method and write the JobId in a log info #API #Business Service #CSP #REST API #Studio #InterSystems IRIS 1 3 0 114
Question Kurro Lopez · Feb 8 Deserialize class from JSon with nodes null Hi all, We have a class response inherited from %JSON.Adaptor with the following properties, also dependent classes: #API #JSON #InterSystems IRIS 1 3 0 99
Question Kurro Lopez · Feb 7 Error debug from VS Hi community. Yes, I know that there is other question "VS Code - debugging doesn't work" that is the same issue, but my IRIS instance is not using IIS. Some times ago, I could debug without problems, but after some updates of Visual Studio, I get the following error Failed to start the debug session. Check that the Intersystems server's web server supports WebSockets #Debugging #JSON #ObjectScript #Studio #InterSystems IRIS #VSCode 1 3 0 96
Question Kurro Lopez · Feb 1 How to process parallelly a process from a business service? Hi community. I have an API that is deployed in my production (business service) and it calls to a business process to retrieve the information that is requested. The problem that I have is that the calls are queued and it's creating a bottleneck The business process is taking more time than needed. Is possible to configure the BP to process parallely the requests? #API #Business Process (BPL) #Business Service #InterSystems IRIS 1 4 0 104
Question Kurro Lopez · Jan 31 How to clone a namespace? Hi community, We have a developed a new version of a production, all the code is new and has changed BP. This application load information for some brands and stored in database. The customer wants to implement the changes only for some brands because he wants to check for small brands before to implement for all brands. My proposal is create a new namespace, with the new code, and disabled all load of brands except the brand that he wants to check. I'm wondering what is the best way to clone the namespace. #Backup #Databases #Namespace #InterSystems IRIS #InterSystems IRIS for Health 1 2 0 97
Article Kurro Lopez · Dec 8, 2023 8m read Open AI integration with IRIS - File management Artificial intelligence is not limited only to generating images through text with instructions or creating narratives with simple directions. You can also make variations of a picture or include a special background to an already existing one. Additionally, you can obtain the transcription of audio regardless of its language and the speed of the speaker. So, let's analyze how the file management works. #AI #Business Operation #Framework #InterSystems IRIS #Open Exchange Open Exchange app 9 2 1 276
Article Kurro Lopez · Jun 19, 2023 8m read Open AI integration with IRIS As you all know, the world of artificial intelligence is already here, and everyone wants to use it to their benefit. There are many platforms that offer artificial intelligence services for free, by subscription or private ones. However, the one that stands out because of the amount of "noise" it made in the world of computing is Open AI, mainy thanks to its most renowned services: ChatGPT and DALL-E. #AI #Business Operation #Framework #InterSystems IRIS Open Exchange app 15 6 2 981
Question Kurro Lopez · Jun 1, 2023 Call to business operation dinamically from HL7 Router Hi all, I'm wondering if is possible to call to a BO from a HL7 Route according to a parameter of the HL7 Message I mean, According to the identify of the laboratory, I want to call to other TCP process to retrieve information about blood tests. We are creating the BO using this partern. LAB.BO.TCP. + name of the laboratory. The name of the laboratory is stoted in the lookup table T_LABORATORIOS I've tried to assign the name into a variable and put it in the "send" instruction, but it doesn't work. #Business Rules #HL7 #Interoperability #InterSystems IRIS 1 3 0 163
Question Kurro Lopez · Apr 19, 2023 Replace text by args Hi all, I'm wondering if exists any command or method to replace a text using parameters. In C# I use the Format property #Key Question #InterSystems IRIS 1 11 1 314
Question Kurro Lopez · Mar 14, 2023 Error installing ZPM Hi all, I'm trying to install ZPM into a new instance of IRIS to download packages of utilities in our develop server. When I'm loading the file zpm-0.5.3.xml it is throwing the following error: Any help? Thanks in advance #InterSystems Package Manager (IPM) #InterSystems IRIS for Health 1 4 0 266
Article Kurro Lopez · Feb 4, 2023 2m read How to deploy your production in the simplest way Usualy, if you want to deploy a solution, you need to add the items, configure your lookup tables and default configuration manually. It's okay if you have all the permissions and privileges to perform these actions. If you want to deploy to a client's production server, and you don't have the permissions, you need to indicate in a document ALL the steps that the deployment manager has to perform. #Deployment #Ensemble #InterSystems IRIS #Open Exchange Open Exchange app 2 0 0 214
Question Kurro Lopez · Sep 19, 2022 Get HttpStatus in a response using EnsLib.HTTP.OutboundAdapter Hi community, I have to do a development that should to connect with a external REST API and it throws different HttpStatus and a body content with the description of the problem. I'm using the following code: #REST API #Caché 1 2 0 215
Question Kurro Lopez · Jul 21, 2022 Webterminal broken :( Hi all, I've just update the version of WebTerminal using the link, but now it doesn't work. When call to /terminal is displaying the following error: #Terminal #Caché #InterSystems IRIS 1 3 0 218
Question Kurro Lopez · Apr 26, 2022 Webterminal - Error connection to server Hi all, We just migrated the new Iris server 2021.2 all our productions in a develop server. It's a Windows 2019 server. I've installed Webterminal to have a good connection to this server remotly, but it is throwing this error message: #InterSystems IRIS 1 3 0 291
Article Kurro Lopez · Mar 4, 2022 4m read How to become a time lord - Time travel Time travel is like visiting Paris. You can't just read the guide, you have to throw yourself into it. Eat the food, use the wrong verbs, get double the charges, and end up kissing complete strangers. The Doctor We are now going to travel through time, that is, we are going to see future and past dates and how to calculate them in different formats. The TARDIS doesn't wait, take the controls and hold on tight. #ObjectScript #Tips & Tricks #Caché 8 5 0 376
Article Kurro Lopez · Mar 1, 2022 5m read How to become a time lord - The birth Good men don’t need rules. The Doctor. It's not an easy task to be a master of dates and times, it is always a problem and sometimes confusing in any programming language, we are going to clarify and put a few tips to make this task as simple as possible. Get on the TARDIS and I'm going to turn you into a Time lord #ObjectScript #Tips & Tricks #Caché 15 3 1 589
Question Kurro Lopez · Feb 17, 2022 How to don't throw Ens.Alert for messages from a Business Operation Hi all, I have a rule to throw a message when there is an error. I want to prevent send the email if the origin of the error is the API to send the email This is my rule Now, If there is any error in any process, it works, but if there is an error in MyProduct.BO.SendEmail it is trying to send the error again, and it is a infinite loop. Is there any way to check what is the origin and don't process if the origin is MyProduct.BO.SendEmail? #Business Rules #Error Handling #Caché #HealthShare 1 2 0 274