For example <version>1234</version> is one of the tags in the xml response i get back from a web service and i want to get the string 1234 in it which is the value of the tag <version>.
You can use a set properties shape and set a property with the value of the profile element. If you need to route your document based on that field, you could use a decision shape or business rules shape based on the profile element.
Thank you for your response. I am trying to find a way to create the xml profile when the process runs and the http client connector gets the xml reponse back, is this possible with set properties? the way i know we can use that is to create an xml profile by browsing to the xml returned from the webservice and creating the profile from it manually.
Yes, that is exactly how you would do that. You'll just import one of your response documents and create the profile. You might have to "tweak" a few things before you use it, but it should be pretty straightforward. Let me know if you run into issues.
Thank you John! I appreciate your help. I have one more question I would appreciate your help on, if the webservice has a variable in the url say userid as follows:
how can I pass in different values of userid to this http connector? i do not want to hard code let's say: https://example.com/12/getRecords, rather I would like to pass in a list of userids to this connector to run this operation on.
Good question. Read these docs on the HTTP Client Operation.
You will utilize the "Is Replacement Variable" in the resource path configuration. You can either hard code values here, or check the "Is Replacement Variable" box. Doing so will allow you to configure parameter values on the connection (which would be supplied with the values of dynamic process properties, document properties, etc.).
Thank you again John I am a bit confused as to how create the body of this request as well. For example if in my HTTP Client Operation I am posting a content/type of application/binary, where/how do I input this image file to this connector? traditionally in coding it is part of the body of the http request but I don't know how to do it here.
Thank you so much!
The actual document that flows to the HTTP Connector shape is what will be sent as the "POST" request's payload.
but in this case, I will have two, one is the "username" variable in the request url that I was mentioning and you suggested that I can utilize the "Is Replacement Variable" in the resource path configuration and supply it with the values of dynamic document properties (so one flow to this connector is the set properties shape for username), the other one is the image files I am sending to it as the body. How do I pass both?
The username variable will still populate your request URL. The dynamic document property would travel to the connection with your payload data (so to speak). Have you attempted to send a request yet?
no it error out on the input because my input is not given correctly. So here is where I am stuck. I would really appreciate your help.
The REST URL to upload photos to users is:https://exa
This end point requires a content-type of application/binary (which is the image I am uploading).
In the screenshot below I have made the following pieces to achieve this but do not know how they come together.
So the get images start shape is an SFTP connector which reads the images from the sftp account (tested and it works fine). the userlist set properties shape has a dynamic document property which it's value is set to a username for now say 10 (in future it has to be dynamic as I need to get the list of users from the image names on SFTP). I also have setup the upload photos connector that is actually uploading the photos. in the request path I give username as a value and as you suggested it is marked as replaceable. Now how do i give these inputs together to the connector?
Sorry for the long explanation, I erally appreciate your help
Does your inbound data contain the employee IDs that belong to the applicable image? What is the format of your inbound data? How do you know which employee to update in your HTTP POST?
You are right, I think that is what I am missing, so how can I bound which image/document is for which user and then send both of these data to my upload connector?
I don't think that is a question we can answer here. You will have to get additional requirements and/or bring this up to your client. If you are just getting random images off of an SFTP server, you don't have the useful information that you need to assign an image to the employee.
Thanks John, sorry I did not explain well. I know what image I want to map to which user, I just do not know how to do it here in Boomi, the images I have are named as the username so 10.jpg is the image that should be uploaded for username 10.
Retrieving data ...