Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

sample groovy script to create a record in custom Object using BIP report output

in Sales 1 comment

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());

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!