Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DVBC250P

DVBC250P.m

Go to the documentation of this file.
  1. DVBC250P ;ALB/BG - PATCH DVBA*2.7*250 POST-INSTALL ROUTINE; SEP 20, 2023@10:20 ; 10/24/23 2:31pm
  1. ;;2.7;AMIE;**250**;Apr 10, 1995;Build 19
  1. ; Per VHA Directive 6402 this routine should not be modified
  1. ; Reference to SUPPORTED PARAMETER TOOL ENTRY POINTS in ICR #2263
  1. Q
  1. ;
  1. VUPDATE ; MINIMUM AND PREVIOUS CAPRI VERSION UPDATES
  1. N DVBVER
  1. D MES^XPDUTL("Patch DVBA*2.7*250 post install started")
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF TOKEN URL","https://login.microsoftonline.com/{{TENANTID}}/oauth2/v2.0/token")
  1. D UPDMSG("DVBAB CAPRI NF TOKEN URL",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF SITEID URL","https://graph.microsoft.com/v1.0/sites/dvagov.sharepoint.com:/sites/OITEPMOCAPRICOMM")
  1. D UPDMSG("DVBAB CAPRI NF SITEID URL",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF DRIVEID URL","https://graph.microsoft.com/v1.0/sites/{{SITEID}}/drives")
  1. D UPDMSG("DVBAB CAPRI NF DRIVEID URL",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF FILEINFO URL","https://graph.microsoft.com/v1.0/drives/{{DRIVEID}}//root:/CAPRI Announcements:/children(''{{FILENAME}}'')")
  1. D UPDMSG("DVBAB CAPRI NF FILEINFO URL",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI MINIMUM VERSION","CAPRI GUI V2.7*250.7*1*A*3240105*1.3*1.3")
  1. D UPDMSG("CAPRI MINIMUM VERSION",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI PREVIOUS VERSION","DVBA*2.7*243.7")
  1. D UPDMSG("DVBAB CAPRI PREVIOUS VERSION",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF CLIENT","463b2348-85aa-40ba-81c8-af57fd0da97d@e95f1b23-abaf-45ee-821d-b7ab251ab3bf")
  1. D UPDMSG("DVBAB CAPRI NF CLIENT",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF TENANT","e95f1b23-abaf-45ee-821d-b7ab251ab3bf")
  1. D UPDMSG("DVBAB CAPRI NF TENANT",DVBVER)
  1. S DVBVER=$$ENXPAR("PKG","DVBAB CAPRI NF TOKEN","7xB8Q~74JE5Eh~5g3mn2ZNxbWSvtYkjnwWjfJbbw")
  1. D UPDMSG("DVBAB CAPRI NF TOKEN",DVBVER)
  1. D BMES^XPDUTL("Patch DVBA*2.7*250 post install finished")
  1. Q
  1. ;
  1. ENXPAR(DVBENT,DVBPAR,DVBVAL) ;
  1. N DVBVER
  1. D EN^XPAR(DVBENT,DVBPAR,1,DVBVAL,.DVBVER)
  1. Q DVBVER
  1. ;
  1. UPDMSG(DVBPAR,DVBVER) ;
  1. I DVBVER D
  1. . D BMES^XPDUTL(DVBPAR_" Update FAILURE.")
  1. . D MES^XPDUTL(" Failure reason: "_DVBVER)
  1. E D
  1. . D BMES^XPDUTL(DVBPAR_" Updated Successfully")
  1. Q