There is a requirement to send the keys to the outer system with the inbound response.
→ Inbound request
→ Create response with the key
I have tried to achieve this using the ‘Table key returns’ option in xml map.(As shown in the below screenshot )
Postman request
Postman response
But the response doesn’t have the Task ID information.
Am I missing something here?
Thanks and regards,
Hasara
Best answer by Saranga Amaraweera
Hasara Dinu wrote:
Hi Saranga,
Thank you for the response.
Above suggestion was tested but still the TASK ID is not in the response.
Postman Response
{
"@odata.context": "http://hagilk0//DEMOFSMServer6_4/OData/$metadata#fsm.ComplexType",
"value": "<perform_inbound_integration_result><batch_id></batch_id><run_id>156</run_id><run_status>COMPLETED</run_status><run_message>1 records processed.</run_message><run_handler>Standard XML Inbound</run_handler><keys><keys /></keys><CustomResponse></CustomResponse></perform_inbound_integration_result>"}
According to the baseline code, you should be providing the table name instead of the key column name (key field) so that it will return the relevant keys on your result for <keys> element. This should be working with “*” (all) symbol as well in which returns all the relevant key fields for all the tables.
Above suggestion was tested but still the TASK ID is not in the response.
Postman Response
{
"@odata.context": "http://hagilk0//DEMOFSMServer6_4/OData/$metadata#fsm.ComplexType",
"value": "<perform_inbound_integration_result><batch_id></batch_id><run_id>156</run_id><run_status>COMPLETED</run_status><run_message>1 records processed.</run_message><run_handler>Standard XML Inbound</run_handler><keys><keys /></keys><CustomResponse></CustomResponse></perform_inbound_integration_result>"}
Above suggestion was tested but still the TASK ID is not in the response.
Postman Response
{
"@odata.context": "http://hagilk0//DEMOFSMServer6_4/OData/$metadata#fsm.ComplexType",
"value": "<perform_inbound_integration_result><batch_id></batch_id><run_id>156</run_id><run_status>COMPLETED</run_status><run_message>1 records processed.</run_message><run_handler>Standard XML Inbound</run_handler><keys><keys /></keys><CustomResponse></CustomResponse></perform_inbound_integration_result>"}
According to the baseline code, you should be providing the table name instead of the key column name (key field) so that it will return the relevant keys on your result for <keys> element. This should be working with “*” (all) symbol as well in which returns all the relevant key fields for all the tables.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.