sample groovy script to create a record in custom Object using BIP report output
Summary:
We have created custom object 'Plant_c'
We have created a bip report that fetches the Plant report.
Based on this we need to create record in Custom object.
need a sample groovy script to achieve this.
Using the below code, I am able to get the XML data by invoke external bip webservice. Need the code to create a record in custom object
def reportRequest =
[
byPassCache :true,
flattenXML :false,
reportAbsolutePath :'/Custom/PCA GL Custom Objects new/plantrpt.xdo',
sizeOfDataChunkDownload :-1,
]
def appParams = '';
def report = adf.webServices.PCAPlantInvoke.runReport(reportRequest,appParams);
def decoderesult = decodeBase64(report.reportBytes.toString());