新しい投稿

検索

質問
· 2025年5月28日

JSON - Field extraction using Object Script

I am struggling on how to pull out individual fields from a JSON. In a previous post someone had mentioned that I could...

  If ((tHttpResponseIsObject) && ($ZCONVERT(tHttpResponseContentType,"L") [ "application/json"))
  {
    set responseData = {}.%FromJSON(tHTTPResponse.Data)
    set pResponse = ##class(osuwmc.COM.Response.StringResponse).%New()
    if responseData.count =1{
      set pResponse.COMPortalURL = responseData.items.%Get(0).portalUrl
      set pResponse.COMPureID = responseData.items.%Get(0).pureId
      set pResponse.COMTitle = responseData.items.%Get(0).titles.%Get(0).value
    }
  }

for the following JSON response...

 
JSON

Where I would like to pull value.en_US value, "Professor". 

'When I tried set pResponse.COMTitle = responseData.items.%Get(0).titles.%Get(0).value.%Get(0).en_US, I am not getting any data back.

When set pResponse.COMTitle = responseData.items.%Get(0).titles.%Get(0).value I get back 95@%Library.DynamicObject.

What is the correct syntax?

6 Comments
ディスカッション (6)2
続けるにはログインするか新規登録を行ってください
質問
· 2025年5月28日

Estou com dificuldades em criar um método em uma classe de ferramentas para enviar email

foi desenvolvido o seguinte código:

        ; configurando servidor de e-mail
        
          Set server=##class(%Net.SMTP).%New()
          Set server.smtpserver="smtplw.com.br" //locaweb servidor
          //HotPOP SMTP server uses the default port (25)
          Set server.port=587
          
          //Create object to carry authentication
          Set auth=##class(%Net.Authenticator).%New()
          Set auth.UserName="email@dominio.com.br"
          Set auth.Password="1234"
          
          Set server.authenticator=auth
          Set server.AuthFrom=auth.UserName
        
        ; envio de e-mail
        
          Set msg = ##class(%Net.MailMessage).%New()
          Set From=server.authenticator.UserName
          Set:From="" From="email@dominio.com.br"
          Set msg.From = From
          
          Do msg.To.Insert(email)
          Set msg.Subject="Cadastro de Acesso "_$H
          Set msg.IsBinary=0
          Set msg.IsHTML=0
          Do msg.TextData.Write("Cadastro efetuado com sucesso.")
          
          Set status=server.Send(msg)
          &js<alert("status de envio de e-mail: "+#(status)#);>
          If $$$ISERR(status) {
            Do $System.Status.DisplayError(status)
            Set %error = server.Error
            Quit
          }
 

Acredito que está faltando incluir a porta do ssl/tls que, conforme a locaweb, é 465.

Mas onde?

Agradeço antecipadamente qualquer ajuda.

1 Comment
ディスカッション (1)2
続けるにはログインするか新規登録を行ってください
お知らせ
· 2025年5月28日

[Video] SMART on FHIR: FHIR Server - OAuth Config

Hey Community,

Enjoy the new video on InterSystems Developers YouTube:

⏯ SMART on FHIR: FHIR Server - OAuth Config

From this video, you'll learn how to set up an authentication server and register an application within the InterSystems Cloud Services Portal.

🗣  Presenter@Tani Frankel, Sales Engineer Manager, InterSystems

Check out the related article: SMART on FHIR app - Sample with Hands-on Exercise/Workshop Instructions

Enjoy watching, and look for more videos! 👍

1 Comment
ディスカッション (1)2
続けるにはログインするか新規登録を行ってください
質問
· 2025年5月28日

What is the global ^Ens.AppData and is it secure kill it?

What is the global ^Ens.AppData and is it secure kill it? These global is consuming many storage and need increase free space

3 Comments
ディスカッション (3)3
続けるにはログインするか新規登録を行ってください
記事
· 2025年5月28日 6m read

Intégration vectorielle et recherche vocale. Analyse et points d'innovation

Cet article présente une analyse du cycle de solution pour l'application Open Exchange TOOT ( application Open Exchange)

L'hypothèse

Un bouton sur une page Web permet de capturer la voix de l'utilisateur. L'intégration IRIS permet de manipuler les enregistrements afin d' extraire la signification sémantique que la recherche vectorielle d'IRIS peut ensuite proposer pour de nouveaux types de solutions d'IA.

ディスカッション (0)2
続けるにはログインするか新規登録を行ってください