diff --git a/IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json b/IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json index 1e0097ed..9b0e4610 100644 --- a/IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json +++ b/IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "545cc13f-aa62-40ac-8ebe-adb14122f027", + "_postman_id": "fcdb24a4-4c07-4256-8ffa-abf56ec93a69", "name": "REST API Examples (Integration Development Guide)", "description": "This collection contains examples from the [REST API Examples](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=bbb8b84b-07d7-4a69-adf8-33dc5d430b60) chapter of the Integration Development Guide of Acumatica ERP.\n\n**Testing the Requests**\n\nTo test the examples, you configure this collection and the Acumatica ERP instance to be used as follows:\n\n- Deploy a new Acumatica ERP instance with three tenants that are based on the U100, SalesDemo, and T100 datasets. For details on deploying an instance, see [To Deploy an Acumatica ERP Instance](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=b18ad378-0a8c-44f1-a14c-6b4f9c6271e4) in the Installation Guide.\n \n- Specify the base URL of the site in the _BaseURL_ variable of the collection.\n \n- Specify the instance URL in the _InstanceURL_ variable of the collection.\n \n- Make sure the URL of the Default/24.200.001 endpoint is in the _EndpointURL_ variable.\n \n- Make sure the URL of the MANUFACTURING/24.200.001 endpoint is in the _ManufacturingEndpointURL_ variable.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the U100 data in the _TenantU100_, _BranchU100_, _UsernameU100_, and _PasswordU100_ variables.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the T100 data in the _TenantT100_, _BranchT100_, _UsernameT100_, and _PasswordT100_ variables.\n \n- Specify the tenant name, branch, username, and password to access the tenant with the T100 data in the _TenantSalesDemo_, _BranchSalesDemo_, _UsernameSalesDemo_, and _PasswordSalesDemo_ variables.\n \n\nOther variables are used by particular requests and are specified during execution of other requests. You do not need to feel their values manually.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", @@ -11401,7 +11401,7 @@ "//Sign out\r", "var url = pm.collectionVariables.get('InstanceURL');\r", "pm.acuFunc.singOutFunction(pm, url);\r", - "pm.execution.setNextRequest('Retrieve the Sales Order with Details');" + "pm.execution.setNextRequest('Retrieve a Sales Order by the Values of Specific Fields');" ], "type": "text/javascript", "packages": {} @@ -11443,7 +11443,7 @@ "response": [] }, { - "name": "Retrieve the Sales Order with Details", + "name": "Retrieve a Sales Order by the Values of Specific Fields", "event": [ { "listen": "test", @@ -11837,7 +11837,8 @@ "var branch = pm.collectionVariables.get('BranchU100'); \r", "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -11863,9 +11864,10 @@ "//Sign out and set the next request\r", "var url = pm.collectionVariables.get('InstanceURL');\r", "pm.acuFunc.singOutFunction(pm, url);\r", - "pm.execution.setNextRequest(\"Read the Tracking Number from a Shipment\");" + "pm.execution.setNextRequest(\"Create a Shipment for Sales Orders\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -12548,6 +12550,91 @@ { "name": "Shipment", "item": [ + { + "name": "Create a Shipment for Sales Orders", + "event": [ + { + "listen": "prerequest", + "script": { + "exec": [ + "//U100 sign-in data\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "var username = pm.collectionVariables.get('UsernameT100');\r", + "var password = pm.collectionVariables.get('PasswordT100');\r", + "var tenant = pm.collectionVariables.get('TenantT100');\r", + "var branch = pm.collectionVariables.get('BranchT100');\r", + "//Sign in and do prerequesites\r", + "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password);" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "test", + "script": { + "exec": [ + "//Test the result\r", + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "pm.test(\"The shipment is created for three items\", function (){\r", + " const jsonResponse = pm.response.json();\r", + " pm.expect(jsonResponse.Details).to.have.lengthOf(3);\r", + "});\r", + "pm.test(\"The shipment is on hold\", function (){\r", + " const jsonResponse = pm.response.json();\r", + " pm.expect(jsonResponse.Status.value).to.eql('On Hold');\r", + "});\r", + "//Sign out and set next request\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "pm.acuFunc.singOutFunction(pm, url);\r", + "pm.execution.setNextRequest(\"Read the Tracking Number from a Shipment\");\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\r\n\t\"Type\":{\"value\":\"Shipment\"},\r\n\t\"CustomerID\":{\"value\":\"C000000003\"},\r\n\t\"WarehouseID\":{\"value\":\"MAIN\"},\r\n \"ShipmentDate\":{\"value\":\"2024-11-01\"},\r\n\t\"Details\":[\r\n\t\t{\r\n\t\t\t\"OrderType\":{\"value\":\"SO\"},\r\n\t\t\t\"OrderNbr\":{\"value\":\"000004\"}\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"OrderType\":{\"value\":\"SO\"},\r\n\t\t\t\"OrderNbr\":{\"value\":\"000006\"}\r\n\t\t}\r\n\t]\r\n}" + }, + "url": { + "raw": "{{EndpointURL}}Shipment?$select=Type,ShipmentNbr,Status,Details/InventoryID&$expand=Details", + "host": [ + "{{EndpointURL}}Shipment" + ], + "query": [ + { + "key": "$select", + "value": "Type,ShipmentNbr,Status,Details/InventoryID" + }, + { + "key": "$expand", + "value": "Details" + } + ] + }, + "description": "This example shows the creation of a shipment with allocations and package specifications, which is described in [Create a Shipment for Two Sales Orders with Allocations and Package Specifications](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=ab83de33-505c-476e-b8b8-99f2a98e142c)." + }, + "response": [] + }, { "name": "Create a Shipment for Two Sales Orders with Allocations and Package Contents", "event": [ @@ -13589,9 +13676,10 @@ "//Sign out and set next request\r", "var url = pm.collectionVariables.get('InstanceURL');\r", "pm.acuFunc.singOutFunction(pm, url);\r", - "pm.execution.setNextRequest(\"Add a Note to a Stock Item\");" + "pm.execution.setNextRequest(\"Create a Stock Item with Attributes\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -13606,7 +13694,8 @@ "var branch = pm.collectionVariables.get('BranchT100'); \r", "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -13633,6 +13722,86 @@ }, "response": [] }, + { + "name": "Create a Stock Item with Attributes", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "pm.test(\"The stock item has two attributes\", function (){\r", + " const jsonResponse = pm.response.json();\r", + " pm.expect(jsonResponse.Attributes).to.have.lengthOf(2);\r", + "});\r", + "//Sign out and set next request\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "pm.acuFunc.singOutFunction(pm, url);\r", + "pm.execution.setNextRequest(\"Add a Note to a Stock Item\");" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "//Sign in to the tenant with T100 data\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "var username = pm.collectionVariables.get('UsernameT100');\r", + "var password = pm.collectionVariables.get('PasswordT100');\r", + "var tenant = pm.collectionVariables.get('TenantT100');\r", + "var branch = pm.collectionVariables.get('BranchT100'); \r", + "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\t\"InventoryID\":{\"value\":\"BASESERV1\"},\n\t\"Description\":{\"value\":\"Baseline level of performance\"},\n\t\"ItemClass\":{\"value\":\"STOCKITEM\"},\n\t\"Attributes\":[\n\t\t{\n\t\t\t\"AttributeID\":{\"value\":\"Operation System\"},\n\t\t\t\"Value\":{\"value\":\"Windows\"}\n\t\t},\n\t\t{\n\t\t\t\"AttributeID\":{\"value\":\"SOFTVER\"},\n\t\t\t\"Value\":{\"value\":\"Server 2012 R2\"}\n\t\t}\n\t]\n}" + }, + "url": { + "raw": "{{EndpointURL}}/StockItem?$select=InventoryID,Attributes/AttributeDescription,Attributes/Value&$expand=Attributes", + "host": [ + "{{EndpointURL}}" + ], + "path": [ + "StockItem" + ], + "query": [ + { + "key": "$select", + "value": "InventoryID,Attributes/AttributeDescription,Attributes/Value" + }, + { + "key": "$expand", + "value": "Attributes" + } + ] + } + }, + "response": [] + }, { "name": "Add a Note to a Stock Item", "event": [ @@ -13650,9 +13819,10 @@ "//Sign out and set next request\r", "var url = pm.collectionVariables.get('InstanceURL');\r", "pm.acuFunc.singOutFunction(pm, url);\r", - "pm.execution.setNextRequest(\"Update a Tax Category\");" + "pm.execution.setNextRequest(\"Obtain the URL for the Attaching of a File\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -13667,7 +13837,8 @@ "var branch = pm.collectionVariables.get('BranchT100'); \r", "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -13706,6 +13877,145 @@ } }, "response": [] + }, + { + "name": "Obtain the URL for the Attaching of a File", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 200\", function () {\r", + " pm.response.to.have.status(200);\r", + "});\r", + "const jsonResponse = pm.response.json();\r", + "const fileRef = jsonResponse._links['files:put'];\r", + "pm.collectionVariables.set('StockItemFileUrl', fileRef.replace('{filename}','T2MCRO.jpg'));\r", + "//Sign out and set next request\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "pm.acuFunc.singOutFunction(pm, url);\r", + "pm.execution.setNextRequest(\"Update a Tax Category\");" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "//Data for sign-in to the tenant with T100 data\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "var username = pm.collectionVariables.get('UsernameT100');\r", + "var password = pm.collectionVariables.get('PasswordT100');\r", + "var tenant = pm.collectionVariables.get('TenantT100');\r", + "var branch = pm.collectionVariables.get('BranchT100'); \r", + "//Sign in and modify stock items\r", + "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)\r", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "GET", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/json", + "type": "text" + } + ], + "url": { + "raw": "{{EndpointURL}}/StockItem/AALEGO500?$select=InventoryID", + "host": [ + "{{EndpointURL}}" + ], + "path": [ + "StockItem", + "AALEGO500" + ], + "query": [ + { + "key": "$select", + "value": "InventoryID" + } + ] + } + }, + "response": [] + }, + { + "name": "Attach a File to a Stock Item", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code is 204\", function () {\r", + " pm.response.to.have.status(204);\r", + "});\r", + "//Sign out and set next request\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "pm.acuFunc.singOutFunction(pm, url);\r", + "pm.execution.setNextRequest(\"\");" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "//Sign in to the tenant with T100 data\r", + "var url = pm.collectionVariables.get('InstanceURL');\r", + "var username = pm.collectionVariables.get('UsernameT100');\r", + "var password = pm.collectionVariables.get('PasswordT100');\r", + "var tenant = pm.collectionVariables.get('TenantT100');\r", + "var branch = pm.collectionVariables.get('BranchT100'); \r", + "pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "method": "PUT", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + }, + { + "key": "Content-Type", + "value": "application/octet-stream", + "type": "text" + } + ], + "body": { + "mode": "file", + "file": { + "src": "/C:/Work/Help-and-Training-Examples/IntegrationDevelopment/I330/SourceFiles/T2MCRO.jpg" + } + }, + "url": { + "raw": "{{BaseURL}}{{StockItemFileUrl}}", + "host": [ + "{{BaseURL}}{{StockItemFileUrl}}" + ] + } + }, + "response": [] } ], "description": "This folder contains requests that use the [StockItem](https://help.acumatica.com/Help?ScreenId=ShowWiki&pageid=f8def7ed-b7d2-4bd6-bec7-edea763f7741) entity." @@ -17687,6 +17997,10 @@ { "key": "paymentNbr", "value": "" + }, + { + "key": "StockItemFileUrl", + "value": "" } ] } \ No newline at end of file diff --git a/IntegrationDevelopment/I310/REST.postman_collection.json b/IntegrationDevelopment/I310/REST.postman_collection.json index 39d5c222..f825d7f6 100644 --- a/IntegrationDevelopment/I310/REST.postman_collection.json +++ b/IntegrationDevelopment/I310/REST.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "bcfa2679-0042-4bea-a18d-71de4e2082e8", + "_postman_id": "57ce8cbf-5bf7-4e8f-8a90-d78eb71c48d0", "name": "MyBIIntegrationREST", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "1878971" @@ -25,7 +25,7 @@ "pm.test(\".ASP.NET_SessionId recieved\", function () {\r", " pm.expect(pm.cookies.indexOf('.ASP.NET_SessionId')).to.be.not.null;\r", "});\r", - "pm.execution.setNextRequest(\"Lesson 2.1: Retrieving the List of Customers with Contacts\");" + "pm.execution.setNextRequest(\"Activity 2.1.1: To Retrieve the List of Customers with Contacts\");" ], "type": "text/javascript", "packages": {} @@ -140,7 +140,7 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse).to.be.not.empty;\r", "});\r", - "pm.execution.setNextRequest(\"Lesson 2.2: Retrieving the Quantities of Stock Items\");" + "pm.execution.setNextRequest(\"Activity 2.2.1: To Retrieve the Quantities of Stock Items\");" ], "type": "text/javascript", "packages": {} @@ -198,9 +198,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.ItemAvailabilityDataInquiryDetails).to.be.not.empty;\r", "});\r", - "pm.execution.setNextRequest(\"Lesson 3.1: Retrieving the List of Modified Stock Items\");" + "pm.execution.setNextRequest(\"Activity 2.3.1: To Retrieve the List of Modified Stock Items\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -259,9 +260,10 @@ "pm.test(\"Response does not contain AACOMPUT01\", function () {\r", " pm.expect(pm.response.text()).to.not.include(\"AACOMPUT01\");\r", "});\r", - "pm.execution.setNextRequest(\"Lesson 1.1: Signing Out from Acumatica ERP\");" + "pm.execution.setNextRequest(\"Activity 1.2.2: To Sign Out from Acumatica ERP\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -322,7 +324,8 @@ "\r", "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], diff --git a/IntegrationDevelopment/I320/REST.postman_collection.json b/IntegrationDevelopment/I320/REST.postman_collection.json index 21bda017..d1d1adea 100644 --- a/IntegrationDevelopment/I320/REST.postman_collection.json +++ b/IntegrationDevelopment/I320/REST.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "1316b23f-4351-4c63-94f1-f3c3c6a7e494", + "_postman_id": "fb0183f4-77b2-4a15-90d4-299bd05e3beb", "name": "MyStoreIntegration_DataRetrieval", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "1878971" @@ -21,9 +21,10 @@ "});\r", "var responseData = pm.response.json();\r", "pm.collectionVariables.set(\"accessToken\",responseData.access_token);\r", - "postman.setNextRequest(\"Lesson 2.1: Retrieving the List of Sales Orders with Document and Shipment Details\");" + "pm.execution.setNextRequest(\"Lesson 2.1: Retrieving a List of Sales Orders with Details and Related Shipments\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -98,9 +99,10 @@ "pm.test(\"Status code is 204\", function () {\r", " pm.response.to.have.status(204);\r", "});\r", - "postman.setNextRequest(null);" + "pm.execution.setNextRequest(null);" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -109,7 +111,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -202,9 +205,10 @@ "pm.test(\"Response does not contain CurrencyID\", function () {\r", " pm.expect(pm.response.text()).to.not.include(\"CurrencyID\");\r", "});\r", - "postman.setNextRequest(\"Lesson 2.2: Retrieving the List of Sales Orders in Batches (First Five Records)\");" + "pm.execution.setNextRequest(\"Lesson 2.2: Retrieving a List of Sales Orders in Batches (First Five Records)\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -213,7 +217,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -271,9 +276,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse).to.have.lengthOf(5);\r", "});\r", - "postman.setNextRequest(\"Lesson 2.2: Retrieving the List of Sales Orders in Batches (Next Five Records)\");" + "pm.execution.setNextRequest(\"Lesson 2.2: Retrieving a List of Sales Orders in Batches (Next Five Records)\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -282,7 +288,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -345,9 +352,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse).to.have.lengthOf(4);\r", "});\r", - "postman.setNextRequest(\"Lesson 2.3: Retrieving the List of Payments (Failed Request)\");" + "pm.execution.setNextRequest(\"Lesson 2.3: Retrieving the List of Payments (Failed Request)\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -356,7 +364,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -417,9 +426,10 @@ "pm.test(\"Body contains the exception message\", function () {\r", " pm.expect(pm.response.text()).to.include(\"Optimization cannot be performed\");\r", "});\r", - "postman.setNextRequest(\"Lesson 2.3: Retrieving the List of Key Fields of Payments\");" + "pm.execution.setNextRequest(\"Lesson 2.3: Retrieving the List of Key Fields of Payments\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -428,7 +438,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -492,9 +503,10 @@ " pm.expect(jsonData[0].ReferenceNbr.value).to.be.not.null;\r", " pm.expect(jsonData[0].Type.value).to.be.not.null;\r", "});\r", - "postman.setNextRequest(\"Lesson 2.3: Retrieving Payments by Key Fields\");" + "pm.execution.setNextRequest(\"Lesson 2.3: Retrieving Payments by Key Fields\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -503,7 +515,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -557,9 +570,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.ApplicationHistory).to.have.lengthOf(1);\r", "});\r", - "postman.setNextRequest(\"Lesson 3.1: Retrieving the Stock Item\");" + "pm.execution.setNextRequest(\"Lesson 3.1: Retrieving the Stock Item\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -568,7 +582,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], diff --git a/IntegrationDevelopment/I330/REST.postman_collection.json b/IntegrationDevelopment/I330/REST.postman_collection.json index c1fcad5b..f49fd65c 100644 --- a/IntegrationDevelopment/I330/REST.postman_collection.json +++ b/IntegrationDevelopment/I330/REST.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "7d306dca-c01e-4e42-87ca-c7c74ecfa19d", + "_postman_id": "16f11f15-01e0-4038-87bd-d7450ff25244", "name": "MyStoreIntegration_DataManipulation", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "1878971" @@ -21,9 +21,10 @@ "});\r", "var responseData = pm.response.json();\r", "pm.collectionVariables.set(\"accessToken\",responseData.access_token);\r", - "postman.setNextRequest(\"Lesson 1.1: Creating a Shipment\");" + "postman.setNextRequest(\"Activity 2.1.1: To Update a Customer Record\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -171,7 +172,7 @@ "name": "Part 1: Creation of Records", "item": [ { - "name": "Lesson 1.1: Creating a Shipment", + "name": "Activity 1.1.1: To Create a Shipment for Multiple Sales Orders", "event": [ { "listen": "test", @@ -188,7 +189,7 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.Status.value).to.eql('On Hold');\r", "});\r", - "postman.setNextRequest(\"Lesson 1.2: Creating a Stock Item with Attributes\");" + "pm.execution.setNextRequest(\"Activity 1.2.1: To Create a Stock Item with Attributes\");" ], "type": "text/javascript", "packages": {} @@ -246,7 +247,7 @@ "response": [] }, { - "name": "Lesson 1.2: Creating a Stock Item with Attributes", + "name": "Activity 1.2.1: To Create a Stock Item with Attributes", "event": [ { "listen": "test", @@ -259,9 +260,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.Attributes).to.have.lengthOf(2);\r", "});\r", - "postman.setNextRequest(\"Lesson 2.1: Updating a Customer Account\");" + "pm.execution.setNextRequest(\"Activity 2.1.1: To Update a Customer Record\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -270,7 +272,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -320,7 +323,7 @@ "name": "Part 2: Update of Records", "item": [ { - "name": "Lesson 2.1: Updating a Customer Account", + "name": "Activity 2.1.1: To Update a Customer Record", "event": [ { "listen": "test", @@ -333,9 +336,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.BillingContact.Attention.value).to.eq(\"Mr. Jack Green\");\r", "});\r", - "postman.setNextRequest(\"Lesson 2.2: Retrieving the Sales Order with Details\");" + "pm.execution.setNextRequest(\"Activity 2.2.1: To Retrieve the Sales Order\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -344,7 +348,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -393,7 +398,7 @@ "response": [] }, { - "name": "Lesson 2.2: Retrieving the Sales Order with Details", + "name": "Activity 2.2.1: To Retrieve the Sales Order", "event": [ { "listen": "test", @@ -413,9 +418,10 @@ " }\r", "});\r", "\r", - "postman.setNextRequest(\"Lesson 2.2: Updating Detail Lines\");" + "pm.execution.setNextRequest(\"Activity 2.2.2: To Update the Detail Lines of the Sales Order\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -424,7 +430,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -435,11 +442,6 @@ "key": "Accept", "value": "application/json", "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" } ], "url": { @@ -469,7 +471,7 @@ "response": [] }, { - "name": "Lesson 2.2: Updating Detail Lines", + "name": "Activity 2.2.2: To Update the Detail Lines of the Sales Order", "event": [ { "listen": "test", @@ -493,7 +495,7 @@ " pm.expect(item.OrderQty.value).to.eq(5.0);};\r", " }\r", "});\r", - "postman.setNextRequest(\"Lesson 3.1: Releasing from Hold of an Invoice\");" + "pm.execution.setNextRequest(\"Activity 3.1.1: To Remove a Sales Invoice from Hold\");" ], "type": "text/javascript", "packages": {} @@ -556,7 +558,7 @@ "name": "Part 3: Execution of Actions", "item": [ { - "name": "Lesson 3.1: Releasing from Hold of an Invoice", + "name": "Activity 3.1.1: To Remove a Sales Invoice from Hold", "event": [ { "listen": "test", @@ -569,9 +571,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.Status.value).to.equal(\"Balanced\");\r", "});\r", - "postman.setNextRequest(\"Lesson 3.1: Invoking Release of an Invoice\");" + "pm.execution.setNextRequest(\"Activity 3.1.2: To Invoke Release of the Invoice\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -580,7 +583,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -615,7 +619,7 @@ "response": [] }, { - "name": "Lesson 3.1: Invoking Release of an Invoice", + "name": "Activity 3.1.2: To Invoke Release of the Invoice", "event": [ { "listen": "test", @@ -625,9 +629,10 @@ " pm.response.to.have.status(202);\r", "});\r", "pm.collectionVariables.set(\"SalesInvoiceStatusUrl\", pm.response.headers.get(\"Location\"));\r", - "postman.setNextRequest(\"Lesson 3.1: Retrieving the Status of the Release Operation\");" + "pm.execution.setNextRequest(\"Activity 3.1.3: To Retrieve the Status of the Release Operation\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -636,7 +641,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -672,7 +678,7 @@ "response": [] }, { - "name": "Lesson 3.1: Retrieving the Status of the Release Operation", + "name": "Activity 3.1.3: To Retrieve the Status of the Release Operation", "event": [ { "listen": "test", @@ -681,14 +687,15 @@ "if(pm.response.code != 204)\r", "{\r", " setTimeout(function(){},10000);\r", - " postman.setNextRequest(\"Lesson 3.1: Retrieving the Status of the Release Operation\");\r", + " pm.execution.setNextRequest(\"Activity 3.1.3: To Retrieve the Status of the Release Operation\");\r", "}\r", "else\r", "{\r", - " postman.setNextRequest(\"Lesson 3.1: Retrieving the Released Invoice\");\r", + " pm.execution.setNextRequest(\"Activity 3.1.4: To Check the Status of the Sales Invoice\");\r", "}" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -697,7 +704,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -708,11 +716,6 @@ "key": "Accept", "value": "application/json", "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" } ], "url": { @@ -725,7 +728,7 @@ "response": [] }, { - "name": "Lesson 3.1: Retrieving the Released Invoice", + "name": "Activity 3.1.4: To Check the Status of the Sales Invoice", "event": [ { "listen": "test", @@ -738,9 +741,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.Status.value).to.equal(\"Open\");\r", "});\r", - "postman.setNextRequest(\"Lesson 5.1: Adding a Note to a Stock Item\");" + "pm.execution.setNextRequest(\"Activity 5.1.1: To Add a Note to a Stock Item\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -749,7 +753,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -760,11 +765,6 @@ "key": "Accept", "value": "application/json", "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" } ], "url": { @@ -793,7 +793,7 @@ "name": "Part 4: Processing of Payments by Credit Cards", "item": [ { - "name": "Lesson 4.1: Registering a Customer Credit Card", + "name": "Activity 4.1.1: To Register a Customer Credit Card", "event": [ { "listen": "prerequest", @@ -862,7 +862,7 @@ "name": "Part 5: Attachment of Files and Notes", "item": [ { - "name": "Lesson 5.1: Adding a Note to a Stock Item", + "name": "Activity 5.1.1: To Add a Note to a Stock Item", "event": [ { "listen": "test", @@ -875,9 +875,10 @@ " const jsonResponse = pm.response.json();\r", " pm.expect(jsonResponse.note.value).to.equal(\"My note\");\r", "});\r", - "postman.setNextRequest(\"Signing out from Acumatica ERP\");" + "pm.execution.setNextRequest(\"Activity 5.2.1: To Obtain the URL for the Attaching of a File\");" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -886,7 +887,8 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], @@ -927,7 +929,7 @@ "response": [] }, { - "name": "Lesson 5.2: Getting the Put Files URL", + "name": "Activity 5.2.1: To Obtain the URL for the Attaching of a File", "event": [ { "listen": "test", @@ -936,11 +938,13 @@ "pm.test(\"Status code is 200\", function () {\r", " pm.response.to.have.status(200);\r", "});\r", + "pm.execution.setNextRequest(\"Signing out from Acumatica ERP\");\r", "const jsonResponse = pm.response.json();\r", "const fileRef = jsonResponse._links['files:put'];\r", "pm.collectionVariables.set('StockItemFileUrl', fileRef.replace('{filename}','T2MCRO.jpg'));" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } }, { @@ -949,13 +953,11 @@ "exec": [ "" ], - "type": "text/javascript" + "type": "text/javascript", + "packages": {} } } ], - "protocolProfileBehavior": { - "disableBodyPruning": true - }, "request": { "method": "GET", "header": [ @@ -963,19 +965,8 @@ "key": "Accept", "value": "application/json", "type": "text" - }, - { - "key": "Content-Type", - "value": "application/json", - "type": "text" } ], - "body": { - "mode": "file", - "file": { - "src": "" - } - }, "url": { "raw": "{{DefaultEndpointURL}}/StockItem/AALEGO500?$select=InventoryID", "host": [ @@ -996,7 +987,7 @@ "response": [] }, { - "name": "Lesson 5.2: Attaching the File", + "name": "Activity 5.2.2: To Attach a File to the Stock Item", "event": [ { "listen": "test", @@ -1038,7 +1029,7 @@ "body": { "mode": "file", "file": { - "src": "/C:/Work/Help-and-Training-Examples/IntegrationDevelopment/I330/SourceFiles/T2MCRO.jpg" + "src": "SourceFiles/T2MCRO.jpg" } }, "url": {