{"info":{"_postman_id":"9e190520-9c7e-4810-9d75-71d73248b416","name":"Priority - PARTARC","description":"<html><head></head><body><p>We have experimented the following collection with (and without) encoded urls, the urls were encoded with urlencoder.org and the results were always the same.</p>\n<p>PARTARC $metadata:\n\n    \n        \n        \n        \n        \n    \n    .\n    .\n    .\n    \n    \n    \n    \n</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7995744","collectionId":"9e190520-9c7e-4810-9d75-71d73248b416","publishedId":"SWLe77xA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-01-05T12:53:26.000Z"},"item":[{"name":"Retrieve a single PARTARC by the requested keys","id":"4ef464b5-5850-40c6-a153-c966378b973b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://www.eshbelsaas.com/ui/odata/Priority/tabmob.ini/usdemo/PART('012')/PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)","description":"<p>Works just fine, we are giving it all of the requested keys and it's returning a single PARTARC.</p>\n<ul>\n<li>NOTE: The date is not encoded and it still works</li>\n</ul>\n","urlObject":{"protocol":"https","path":["ui","odata","Priority","tabmob.ini","usdemo","PART('012')","PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)"],"host":["www","eshbelsaas","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4ef464b5-5850-40c6-a153-c966378b973b"},{"name":"First example that does not work","id":"7ffcbe66-0e7e-42c1-a5a1-a09a97268b2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"SONQUANT\": 3\n}"},"url":"https://www.eshbelsaas.com/ui/odata/Priority/tabmob.ini/usdemo/PART('012')/PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)","description":"<p>This is how your API doc explains how to make a PATCH request, but sadly this isn't valid for all cases.\nWhen sending this request the API will yell that we didn't provide 'ACTNAME'. (See the next request...)</p>\n","urlObject":{"protocol":"https","path":["ui","odata","Priority","tabmob.ini","usdemo","PART('012')","PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)"],"host":["www","eshbelsaas","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ffcbe66-0e7e-42c1-a5a1-a09a97268b2e"},{"name":"Second example that does not work","id":"a1c34639-9e09-4fc8-b121-1be4f5217fbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"SONQUANT\": 3,\n\t\"ACTNAME\": \"MANU\"\n}"},"url":"https://www.eshbelsaas.com/ui/odata/Priority/tabmob.ini/usdemo/PART('012')/PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)","description":"<p>It took some time to realize that we have to supply the 'ACTNAME' key in the body of the request instead of a key like the rest of the parameters.\nThe $metadata of PARTARC doesn't mention that this value needs to be supplied anywhere and nowhere in the docs does it mention that we sometimes need to supply keys in the body.\nSadly, this wasn't enough to get this request working yet. (See the next request...)</p>\n","urlObject":{"protocol":"https","path":["ui","odata","Priority","tabmob.ini","usdemo","PART('012')","PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)"],"host":["www","eshbelsaas","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1c34639-9e09-4fc8-b121-1be4f5217fbc"},{"name":"Finally, we were able to get this to work","id":"f8c7137d-c3b7-4319-8858-7fe4f1c96e78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}],"advancedConfig":[{"key":"saveHelperData","value":"<save-helper-data>"},{"key":"showPassword","value":"<show-password>"}]},"isInherited":false},"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ACTNAME\": \"MANU\",\n\t\"SONQUANT\": 3\n}"},"url":"https://www.eshbelsaas.com/ui/odata/Priority/tabmob.ini/usdemo/PART('012')/PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)","description":"<p>Finally after a bunch of attempts we tried placing the 'ACTNAME' attribute at the top of the body which seemed to do the trick. This should probably be fixed / documented somewhere.</p>\n","urlObject":{"protocol":"https","path":["ui","odata","Priority","tabmob.ini","usdemo","PART('012')","PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)"],"host":["www","eshbelsaas","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f8c7137d-c3b7-4319-8858-7fe4f1c96e78"},{"name":"Couldn't get this action to work at all","id":"a9c645b0-0301-4ba6-a7ad-7e1cb398dad1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":""},"url":"https://www.eshbelsaas.com/ui/odata/Priority/tabmob.ini/usdemo/PART('012')/PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)","description":"<p>We weren't able to get the DELETE request to work at all. We tried the same solution that we applied on the PATCH request with no success.</p>\n<ul>\n<li>The date is fine because the same one works for the GET request</li>\n<li>The integer keys are supplied with no ''</li>\n<li>We tried to supply the 'ACTNAME' in the body the same way we did with the PATCH request</li>\n</ul>\n<p>Yet, we're always getting an error that says that we are not supplying the \"full key\".</p>\n<p>Are you able to get this to work on your machine?</p>\n","urlObject":{"protocol":"https","path":["ui","odata","Priority","tabmob.ini","usdemo","PART('012')","PARTARC_SUBFORM(ACT=1,SONACT=1,SON=15,RVFROMDATE=1989-01-01T00:00:00+02:00)"],"host":["www","eshbelsaas","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"a9c645b0-0301-4ba6-a7ad-7e1cb398dad1"}],"event":[{"listen":"prerequest","script":{"id":"aeaa0c96-7e81-4248-add9-626855fadaab","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"61a25b50-c554-47c4-90ef-401760200108","type":"text/javascript","exec":[""]}}]}