JItterBit HTTP Endpoint

我的未来我决定 提交于 2019-12-08 08:42:49

问题


I am working to set up a HTTP Endpoint in JitterBit, for this end point we have a system that will call this Endpoint and pass parameters through the URL to it.

example...

http://[server]:[server port]/EndPoint?Id={SalesForecID}&Status={updated status in SF}

Would i need to use the Text File, JSON or XML Method for this? Follow up question would be if it is JSON or XML what would the file look like that is uploaded during creating the endpoint. I have tired with no success with the text file version.

any help would be great.


回答1:


I'm just seeing your question now. You may have found a solution, but this took me a while to figure out, so I'll respond anyway.

To get the passed values, go ahead and create your HTTP Endpoint and add a new operation triggered by it. Then, in your new operation create a script with something like the following:

$SalesForceID = $jitterbit.networking.http.query.Id $UpdatedStatus = $jitterbit.networking.http.query.Status

You can then use these variables elsewhere in your operation chain.

If you want to use these values to feed into another RESTful web service (i.e. an HTTP Source), you'll have to create a separate transformation operation with the HTTP Source. You'd set that source URL to be: http://mysfapp.com/call?Id=[SalesForceID]&Status=[UpdatedStatus]. I'm not sure why, but you can't have the script that extracts the parameters from the Endpoint and the HTTP Source that uses those in the same operation.

Cheers



来源:https://stackoverflow.com/questions/20571637/jitterbit-http-endpoint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!