Skip to main content
shaikg2747
Known Participant
Apr 12, 2023 7:41 AM UTC
Question

How to pass XML input dynamically to an integration?

Hi, 

I have a requirement where I have to send an XML input to the integration and in that input some of the fields I need to send dynamically, and they won't be same every time I hit the integration.

from the particular XML data the below given data has to be pass dynamically.

<BORROWER BorrowerID=""Borrower"" _FirstName=""Charles"" _MiddleName="""" _LastName=""DTestFile"" _NameSuffix="""" _AgeAtApplicationYears="""" _PrintPositionType=""Borrower"" _SSN=""777-77-7777"" MaritalStatusType=""NotProvided"">
<_RESIDENCE _StreetAddress=""4321 Cul De Sac Street"" _City=""Someplace"" _State=""MA"" _PostalCode=""27230"" BorrowerResidencyType=""Current"">
</_RESIDENCE></BORROWER>

How to pass these data dynamically to the integration.? Can anyone help me on this...?

Thanks in Advance,

Gousii.

9 replies

sanchitg0002
Inspiring
Apr 12, 2023 8:05 AM UTC

You can create a rule to dynamically format the data in XML form and by adding rule inputs in the integration for the fields which are dynamic, you can call that rule in the request body.

shaikg2747
Known Participant
Apr 12, 2023 8:11 AM UTC

Ok will check that,

Thanks Sanchit...!!

harshitb6843
Brainy
Apr 12, 2023 8:11 AM UTC

Keep the RI of type "Text" and use that RI in your request body. 

shaikg2747
Known Participant
Apr 12, 2023 8:25 AM UTC

if RI means rule input?

if yes,

 _FirstName=""ri!firstName"" is this the fine way to call because it's not accepting without " " and even not expecting with single quotes.

New Participant
Apr 12, 2023 8:53 AM UTC

Hi,
For concatenating " " ,you can use concat("""" & ri!firstName,"""") .