Skip to main content
shaikg2747
April 12, 2023
Question

How to pass XML input dynamically to an integration?

  • April 12, 2023
  • 9 replies
  • 0 views

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

April 12, 2023

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
April 12, 2023

Ok will check that,

Thanks Sanchit...!!

harshitb6843
April 12, 2023

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

shaikg2747
April 12, 2023

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.

April 12, 2023

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