cancel
Showing results for 
Search instead for 
Did you mean: 

Parse a rest web service to fill a panelist

former_member640082
Participant
0 Kudos

Hello Experts,

I am trying to parse a webservice and fill a node elements that i putted in a list pane.

here is the script that i am using:

script.png

When i debbug my results i found that the elementofnode.id is initialized but in the UI my listPane it's empty.

I need an Urgent response,

Thanks,

Sarah,

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member640082
Participant
0 Kudos

Hello CHANDAN,

I am working with Json not xml

Thanks

mychandan
Explorer
0 Kudos

Hi Sarah,

Which screenshot you have attached, in that ContentType is Blank.

var ContentType = "application/json";

var ID = root.ID.content.RemoveLeadingZeros();
Body = "{\"id\": \"ID\"}";

Best Regards,

Chandan

mychandan
Explorer
0 Kudos

Hi,

In your ABSL code, you missed the BODY part.

Please find the below FYR.

var ID = root.ID.content.RemoveLeadingZeros();
URLParameterEntry.Name = "id"; 
URLParameterEntry.Value = root.ID.content.RemoveLeadingZeros(); 
URLParameter.Add(URLParameterEntry); 
var Body = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<request>" + "<id>" + ID + "</id>" + "</request>";

Best Regards,

Chandan