{"info":{"_postman_id":"c35fcf6e-bb7c-4221-829f-babaa6e30ff3","name":"API CreateContextData","description":"<html><head></head><body><p>Postman collection to demonstrate ContextData API usage</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1896556","collectionId":"c35fcf6e-bb7c-4221-829f-babaa6e30ff3","publishedId":"2s9Y5bPfvF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-30T11:38:32.000Z"},"item":[{"name":"ContextData","item":[{"name":"Create Contact","item":[{"name":"CreateContextData","id":"bea7c411-5a72-4ee7-8cdf-b258929be378","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<contextdata>\r\n \t<campaigndata>\r\n     <Nom>Fred3</Nom>\r\n \t \t<TEL>124584</TEL>\r\n          <CP>45258</CP>\r\n          <Commentaires>Depuis x page</Commentaires>\r\n \t</campaigndata>\r\n   <systemdata xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n     <CurrentActivity xsi:nil=\"true\" />\r\n        <SortInfo>-1000</SortInfo>\r\n          <DialStartDate>2023-07-18 07:01:35.570</DialStartDate>\r\n    </systemdata>\r\n</contextdata>\r\n","options":{"raw":{"language":"xml"}}},"url":"http://{{AppServer}}/data?action=CreateContextData&context=9ff65021118c4a8999f6b3b7012d5f93","description":"<p>Context = campagin Id available in admin.dbo.campaigns</p>\n","urlObject":{"protocol":"http","path":["data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"CreateContextData"},{"description":{"content":"<p>CampaignId</p>\n","type":"text/plain"},"key":"context","value":"9ff65021118c4a8999f6b3b7012d5f93"}],"variable":[]}},"response":[],"_postman_id":"bea7c411-5a72-4ee7-8cdf-b258929be378"}],"id":"9d75c26d-417d-4b6e-a5c3-f714dbde0558","description":"<ul>\n<li>To set an activity Id, instead of xsi:nil, use the following:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> &lt;CurrentActivity&gt;fdfaef6d153a4c0786e1eeafbbc5d38a&lt;/CurrentActivity&gt;\n\n</code></pre>","_postman_id":"9d75c26d-417d-4b6e-a5c3-f714dbde0558"},{"name":"Update Contact","item":[{"name":"01 - ListMatchingData","id":"5b76a9e6-1a89-4e4c-a6a0-5cdc335a899b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{AppServer}}/data?action=ListMatchingData&Context=9ff65021118c4a8999f6b3b7012d5f93&__TEL=0640440440","description":"<p><strong>Sample response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-xml\">&lt;ResultSet&gt;\n    &lt;Element xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" internalId=\"0123f387efce4a8da9d44a0881967f3d\"&gt;\n        &lt;Tel1&gt;5128461&lt;/Tel1&gt;\n        &lt;Tel2&gt;52193&lt;/Tel2&gt;\n        &lt;Nom&gt;Anderea&lt;/Nom&gt;\n        &lt;Prenom&gt;Olivette&lt;/Prenom&gt;\n        &lt;email2&gt;Anderea.Olivette@gmail.com&lt;/email2&gt;\n        &lt;profession&gt;doctor&lt;/profession&gt;\n        &lt;Id&gt;17240200&lt;/Id&gt;\n        &lt;Code_Postal&gt;FK&lt;/Code_Postal&gt;\n    &lt;/Element&gt;\n&lt;/ResultSet&gt;\n\n</code></pre>\n","urlObject":{"protocol":"http","path":["data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"ListMatchingData"},{"key":"Context","value":"9ff65021118c4a8999f6b3b7012d5f93"},{"key":"__TEL","value":"0640440440"}],"variable":[]}},"response":[],"_postman_id":"5b76a9e6-1a89-4e4c-a6a0-5cdc335a899b"},{"name":"02 - UpdateContextData","id":"483cd298-5c9c-47e9-817e-570b3cb86b4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<contextdata>\r\n    <campaigndata>\r\n        <TEL0>5555555</TEL0>\r\n    </campaigndata>\r\n</contextdata>","options":{"raw":{"language":"xml"}}},"url":"http://{{AppServer}}/data?action=UpdateContextData&context=9ff65021118c4a8999f6b3b7012d5f93&id=6014cd64523d40f3ab0b2ba6c6a97087","urlObject":{"protocol":"http","path":["data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"UpdateContextData"},{"description":{"content":"<p>CampaignId</p>\n","type":"text/plain"},"key":"context","value":"9ff65021118c4a8999f6b3b7012d5f93"},{"description":{"content":"<p>Internal__Id__</p>\n","type":"text/plain"},"key":"id","value":"6014cd64523d40f3ab0b2ba6c6a97087"}],"variable":[]}},"response":[],"_postman_id":"483cd298-5c9c-47e9-817e-570b3cb86b4e"},{"name":"02 - UpdateContextData SYS","id":"373e85a8-3470-4609-bb0f-6ba82272be17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<contextdata>\r\n   <systemdata xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\r\n        <Excluded>1</Excluded>\r\n          <DialStartDate>2023-07-18 07:01:35.570</DialStartDate>\r\n    </systemdata>\r\n</contextdata>\r\n","options":{"raw":{"language":"xml"}}},"url":"http://{{AppServer}}/data?action=UpdateContextData&context=9ff65021118c4a8999f6b3b7012d5f93&id=6f90fee84d6a4fa4abede6cd300b8459","urlObject":{"protocol":"http","path":["data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"UpdateContextData"},{"description":{"content":"<p>CampaignId</p>\n","type":"text/plain"},"key":"context","value":"9ff65021118c4a8999f6b3b7012d5f93"},{"description":{"content":"<p>Internal__Id__</p>\n","type":"text/plain"},"key":"id","value":"6f90fee84d6a4fa4abede6cd300b8459"}],"variable":[]}},"response":[],"_postman_id":"373e85a8-3470-4609-bb0f-6ba82272be17"}],"id":"2fd3b7c7-35a3-4d5a-b72d-85777a666598","description":"<p>Update d'un contact utilisant ListMatchingData(Phone) pour mettre à jour le numéro de tel d'un contact</p>\n","_postman_id":"2fd3b7c7-35a3-4d5a-b72d-85777a666598"},{"name":"UpdateContextData","item":[{"name":"UpdateContextData","id":"c5e88d90-04f6-4045-a886-d56dd455b186","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"<contextdata>\r\n    <systemdata>\r\n        <Excluded>1</Excluded>\r\n    </systemdata>\r\n</contextdata>","options":{"raw":{"language":"xml"}}},"url":"http://{{AppServer}}/data?action=UpdateContextData&context=2a5e949fa98a41a08ad3f192b0bfc9a7&id=263a5da54ebd4eb587fbfe2ec73d315d","urlObject":{"protocol":"http","path":["","data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"UpdateContextData"},{"description":{"content":"<p>CampaignId</p>\n","type":"text/plain"},"key":"context","value":"2a5e949fa98a41a08ad3f192b0bfc9a7"},{"description":{"content":"<p>Internal__Id__</p>\n","type":"text/plain"},"key":"id","value":"263a5da54ebd4eb587fbfe2ec73d315d"}],"variable":[]}},"response":[],"_postman_id":"c5e88d90-04f6-4045-a886-d56dd455b186"}],"id":"192571e3-c48e-42a2-9994-93eaf9efe080","description":"<p>Update d'un contact pour mettre la fiche en EXCLUDE.</p>\n","_postman_id":"192571e3-c48e-42a2-9994-93eaf9efe080"},{"name":"Campaign Listing","id":"a70e8aeb-b504-4107-bef4-a2925ebaeb76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{AppServer}}/data?action=ListContexts","urlObject":{"protocol":"http","path":["data"],"host":["{{AppServer}}"],"query":[{"key":"action","value":"ListContexts"}],"variable":[]}},"response":[],"_postman_id":"a70e8aeb-b504-4107-bef4-a2925ebaeb76"}],"id":"5388fd1d-b106-4407-897b-33006a0b4621","description":"<p>ContextData Example to handle records creation and update in Nixxis DB</p>\n","_postman_id":"5388fd1d-b106-4407-897b-33006a0b4621"}]}