in IBM Maximo 7.6.0.8 I would like to create PO from a PR using REST API and VBA (HTTP requests). My code is:
Dim PostData() As Byte
Dim IE As InternetExplorerMedium
Set IE = New InternetExplorerMedium
PostData = "~date=23-08-2018"
PostData = StrConv(PostData, vbFromUnicode)
myheader = myheader & "x-http-method-override: createPOsFromPR" & vbNewLine
myheader = myheader & "Content-Type: application/json" & vbCrLf
IE.Navigate "https://host:port/maxrest/rest/mbo/pr/123", 0, "myIE", PostData, myheader
But I get Error 500. Authentication is not the problem. In general I would like to be albe to copy (assign) PR lines to POs and RFQs. Is this the way to do this? Does someone has working solution? Thanks!