Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a data that consists of many names
and the body is like
{
"name":"names"
}
these names consists of many values that i am getting from the database
and then post those names into website i am using the flow like
tpostgrsqlinput ---->tmap------>twritejsonField------->trestclient------->tlogrow
in trestclient i am using post method
and i dont know where to write the body data and it should be looping after every data is posted
like after posting one name value ex:mukesh
it should loop and post the next value ex:antony
and so on
not like
{
\"name\":\"mukesh"\
}
correct one is
{
\"name\":\"mukesh\"
}
@mukeshmsp96 use the tFlowToIterate between twritejsonField and trestclient and construct the by using (String)globalMap.get("row2.ABC") from tFlowToIterate .
@manodwhb but tflowToiterate cannot be connected to the trestclient how can it be done
can you please be more specific as i am a beginner to talend
how to use the body in post method
like my body should be in this format
{
"name":"name_of_the_Person"
}
where to use this type of data in post method in trestclient
@mukeshmsp96 , find in the below screenshot.
"{\"name\":\""+((String)globalMap.get("row3.newColumn"))+"\"}"
its giving an error that type mismatch cannot convert from string to document
error in tflowToIterate and tfixedFlowInput
its giving an error
my data that i need to pass to the body is in the string