Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In

Quick Launch

Average Rating:

(2 Ratings)
facebook Twitter
Email
Print Bookmark Alert me when this article is updated

Feedback

HOW TO: Pass json parameter for POST request to external api calls in ICRT
Solution
In Informatica Cloud Real Time (ICRT), to pass json parameter for POST request to external api calls, do as follows:

1. You could either use a custom JSON within the service connector binding tab. For instance:
{
"profile": {

"firstName": "t1est111",
"lastName": "test",
"email": "isa1ac@example.org",
"secondEmail": "isaac2@example.org",
"login": "test161@example.org",
"mobilePhone": "555-415-1337"
},
"credentials": {

"password": {
"value": "GoAw@y123"
}

}
}​

(You should escape { with another { and } with another }). Refer to the following screenshot:

345112_1.png

You could also use the following:

​firstName": "{$firstName}

where ​$firstName is an input variable to the service connector.

2. Another approach would be, use the Binding Type as JSON and allow the process to simply set the process objects with the input values to it. At run time it would construct a JSON and send it to the target service.

Suggested the following custom JSON:

{{ "profile": {{ "firstName": "t1est111", "lastName": "test", "email": "isa1ac@example.org", "secondEmail": "isaac2@example.org", "login": "{$loginVariable}", "mobilePhone": "555-415-1337" }}, "credentials": {{ "password" : {{ "value": "GoAw@y123" }} }} }}

where, $loginVariable is an input variable to the service connector.

Also, provided an example of service connector (with implicit process objects) that defines the input variable. Defines the binding as JSON (not Custom ) and allow the process to simply set the process objects with the input values to it. At run time, it would construct a JSON and send it to the target service.
More Information
Reference
Applies To
Product: Cloud Application Integration
Problem Type: Configuration
User Type: Administrator
Project Phase: Implement
Product Version:
Database:
Operating System:
Other Software:
Attachments
Last Modified Date:3/31/2020 9:34 AMID:345112
People who viewed this also viewed

Feedback

Did this KB document help you?



What can we do to improve this information (2000 or fewer characters)