Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue with HTTP headers in tRestClient

Goal of my process is to run through a list of ID's and for each ID call an API with the tRestClient component. 

I ma doing a GET and I am using three headers, where one of the headers is "siteID" which should contain the ID of the record I am iterating. I am retrieving the parameter by setting the value: ((String)globalMap.get("row1.MonoSiteID"))

 

However, running this flow the tRestClient returns error message: "HTTP 404 Not Found". 

When I replace the value with a hardcoded value for one ID, the process runs fine. So, it seems that there is an issue with setting the value from the globalMap.get. Can anyone help me? Thx for your reply!

 

0683p000009M93p.png

Labels (3)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

row1 is flow name after your tFixedFlowInput, not the one before tFlowToIterate.

So you just have to replace 

((String)globalMap.get("row1.MonoSiteID"))

by 

((String)globalMap.get("row10.MonoSiteID"))

or by

row1.MonoSiteID

View solution in original post

3 Replies
TRF
Champion II
Champion II

row1 is flow name after your tFixedFlowInput, not the one before tFlowToIterate.

So you just have to replace 

((String)globalMap.get("row1.MonoSiteID"))

by 

((String)globalMap.get("row10.MonoSiteID"))

or by

row1.MonoSiteID
Anonymous
Not applicable
Author

omg, so easy! thx for your quick reply.
TRF
Champion II
Champion II

You're welcome