Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

jagadeeshk20781
Community profile jagadeeshk20781 Level 1
Job title here
Location here
3 BADGES
Level 1

Level 1

Learn more
Joined the community 04-05-2018 6:47:49 AM
Offline
Top badges earned by jagadeeshk20781
Customize the badges you want to showcase on your profile
Re: Adobe campaign classic REST POST call with JSON as input
Avatar
Give Back
Level 1
jagadeeshk20781
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
View profile
jagadeeshk20781
- Adobe Campaign Classic
Hmm. Seems we need to add the endpoint to server and admin is doing it.when I am getting a JSON object, and also need to get the valuedynamically using key. But the below code works in Plain JS not inCampaign. It is printing single character for every iteration in the loop.Could you please help me to the parse JSON object, because the output isdynamicSample Code:var actualResponse=JSON.stringfy({"Name": "ERR"});var data=JSON.parse(actualResponse);Object.keys(data).forEach(function(key) { console...

Views

2.6K

Likes

0

Replies

0
Re: Adobe campaign classic REST POST call with JSON as input
Avatar
Give Back
Level 1
jagadeeshk20781
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
View profile
jagadeeshk20781
- Adobe Campaign Classic
yes, but my question on POST methodExample:var http = new HttpClientRequest("http://reqres.in/api/users");http.header["Content-Type"] = "application/json";http.body=JSON.stringify({ "name": "morpheus", "job": "leader"});http.method="POST";http.execute();var response=http.response;logInfo("output code"+response.code);logInfo("output value"+response.body);above sample code, i tried to connect the endpoint but it doesnt work. canyou please help me to identify the error if any. thanks.On Tue, May 8,...

Views

2.6K

Likes

0

Replies

0
Adobe campaign classic REST POST call with JSON as input
Avatar
Give Back
Level 1
jagadeeshk20781
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
View profile
jagadeeshk20781
- Adobe Campaign Classic
Hello,i am new to adobe campaign tool, trying to explore the possible ways to1. send POST REST request to endpoint with JSON as input2. get the response as JSON.3. parse the JSON response for usage inside campaign.i tried with GET REST request, got the response back.sample code:var http = new HttpClientRequest("http://jsonplaceholder.typicode.com/posts/1");http.method = "GET";http.execute();var resp = http.response;logInfo("Response Code"+resp.code);logInfo("Response body"+resp.body);Could you p...

Views

4.9K

Likes

0

Replies

5