JItterBit HTTP Endpoint

1.5k views Asked by At

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

There are 1 answers

0
Andrew Lassiter On BEST ANSWER

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