I created a POST Http request in XML format… which is working fine means IT create incident.
I can see the whole created case data through varibale “strAPIresult” in Message box.
But I need to extract or take out the “sys_id” of that created incident and i do not know how to get that.
I tried with strAPIresult(“sys_id”).ToString but its giving Error…
yes its giving all in XML file like <></> means data in the xml tags…
I tried with Deserialized XML also but its not giving me data sys_Id
kindly help who to extract form xml result…
I do not understand how to manipulate the data means how can take perticular data out from this xml result. sys_id or SNnumber or whatever info it have so I can be sure that my ticket is created
@Latif Can you tell me what is the Starting Value in that Xml value ?
Also the workflow below has an example of how to get the value you need from the xml. Check it and apply it for your case and let us know what you get. Deserialize XML Values.zip (1.5 KB)
Check the Text file first, Check the Workflow and the method I have used to get that particular value from the Xml file. Execute the Workflow. You might be able to apply it to your case as well.
@Latif I guess there’s an error in the xml data that you have sent, there’s a <short_description> tag which doesn’t have a corresponding end tag i.e </short_description>
If that’s the actual response that you get, then I guess we can just use regex to get the value you need. Check the workflow below, that gets the value using regex : Regex Find.zip (3.9 KB)
The xml reault is different as its from SN… and every xml syntex is ending like this…
</u_question> and it worked fine as its create record in the system.
Thanks your regex is working perfect as i needed…
thanks alot @supermanPunch…