Focal Point
[SOLVED] USE GET content within a PUT Restful call

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2867058986

April 05, 2018, 06:46 PM
BI Consultant
[SOLVED] USE GET content within a PUT Restful call
Hi All,
I am having a very hard Time in creating a report using Rest PUT.
I have a report sample_get.fex with the below code snippet.I want to create a new fex sample_put.fex using REST PUT call with the same below content.
I have Issues using Rest COPY request which servers the need.
Content of sample_get.fex
TABLE FILE CAR
PRINT CAR COUNTRY
ON TABLE PCHOLD FORMAT HTML
END
below is the code snippet i am using.

var reportgetcontent = http//localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/SavedReportsgetfolder/sample_get.fex?IBIRS_action=get%5Dhttp://localhost:8080/ibi_apps...fex?IBIRS_action=get]http://localhost:8080/ibi_apps...fex?IBIRS_action=get

var newputreport = http//localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/SavedReportsputfolder/sample_put.fex?IBIRS_action=put&IBIRS_object=%5Dhttp://localhost:8080/ibi_apps...on=put&IBIRS_object=]http://localhost:8080/ibi_apps...on=put&IBIRS_object= reportgetcontent

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8

Windows, All Outputs
April 06, 2018, 11:54 AM
dhagen
The IBIRS_action has nothing to do with GET|POST. It should be "run" for report executions. A GET|POST is a HTTP method.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott