65.9K
CodeProject is changing. Read more.
Home

Export case360 Application Files using R

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Feb 9, 2016

CPOL
viewsIcon

5950

Autodeploy case36 using R

Introduction

Manual deployments is an annoyance to many case360 developers, this is a way to export the application using R. Although R was not designed with this in mind, it's a tad simpler and allows for more automation than just using dos batch scripts as was done here.

Using the Code

Change the names of the application to suit your setup:

//
applications <- c("System", "Application2", "Application3")

c360Download <- function(x) {
  encoded <-  base64enc::base64encode(charToRaw(x))
  exportURL <- paste0("https://serverName/sonora/ImportExport?op=export&applicationName=", encoded)
  destFileName <- paste0(x, ".xml")
  download.file(exportURL, destFileName)
}

sapply(applications, c360Download)

//

History

  • 9th February, 2016: Initial version