Skip to content

Commit 5961c40

Browse files
committed
BS-4116: multiple changes to the added requests (URL, dates corrected)
1 parent f77752b commit 5961c40

1 file changed

Lines changed: 8 additions & 80 deletions

File tree

IntegrationDevelopment/Help/IntegrationDevelopmentGuide.postman_collection.json

Lines changed: 8 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -4846,7 +4846,7 @@
48464846
"//Sign out and set the next request\r",
48474847
"var url = pm.collectionVariables.get('InstanceURL');\r",
48484848
"pm.acuFunc.singOutFunction(pm, url);\r",
4849-
"pm.execution.setNextRequest(\"Update a Configuration Entry\");"
4849+
"pm.execution.setNextRequest(\"Create a Contact with Attributes\");"
48504850
]
48514851
}
48524852
},
@@ -4901,78 +4901,6 @@
49014901
}
49024902
},
49034903
"response": []
4904-
},
4905-
{
4906-
"name": "Update a Configuration Entry",
4907-
"event": [
4908-
{
4909-
"listen": "test",
4910-
"script": {
4911-
"type": "text/javascript",
4912-
"exec": [
4913-
"//Test the result\r",
4914-
"pm.test(\"Status code is 200\", function () {\r",
4915-
" pm.response.to.have.status(200);\r",
4916-
"});\r",
4917-
"//Sign out and set the next request\r",
4918-
"var url = pm.collectionVariables.get('InstanceURL');\r",
4919-
"pm.acuFunc.singOutFunction(pm, url);\r",
4920-
"pm.execution.setNextRequest(\"Create a Contact with Attributes\");"
4921-
]
4922-
}
4923-
},
4924-
{
4925-
"listen": "prerequest",
4926-
"script": {
4927-
"type": "text/javascript",
4928-
"exec": [
4929-
"//Sign in to the tenant with SalesDemo data\r",
4930-
"var url = pm.collectionVariables.get('InstanceURL');\r",
4931-
"var username = pm.collectionVariables.get('UsernameSalesDemo');\r",
4932-
"var password = pm.collectionVariables.get('PasswordSalesDemo');\r",
4933-
"var tenant = pm.collectionVariables.get('TenantSalesDemo');\r",
4934-
"var branch = pm.collectionVariables.get('BranchSalesDemo'); \r",
4935-
"pm.acuFunc.singInFunction(pm, url, tenant, branch, username, password)"
4936-
]
4937-
}
4938-
}
4939-
],
4940-
"id": "e5926965-0f99-40bf-be9d-5982f9abaef9",
4941-
"protocolProfileBehavior": {
4942-
"disableBodyPruning": true
4943-
},
4944-
"request": {
4945-
"method": "PUT",
4946-
"header": [
4947-
{
4948-
"key": "Content-Type",
4949-
"value": "application/json",
4950-
"type": "text"
4951-
},
4952-
{
4953-
"key": "Accept",
4954-
"value": "application/json",
4955-
"type": "text"
4956-
}
4957-
],
4958-
"body": {
4959-
"mode": "raw",
4960-
"raw": "{\r\n \"ProdOrderNbr\": {\"value\": \"AM000022\"},\r\n \"ProdOrderType\": {\"value\": \"RO\"},\r\n \"ConfigResultsID\": {\"value\": \"5\"},\r\n \"ConfigurationID\": {\"value\": \"AMC000003\"},\r\n \"Features\": [\r\n {\r\n \"FeatureLineNbr\": { \"value\": 1 },\r\n \"ConfigResultsID\": { \"value\": \"5\" },\r\n \"Options\": [\r\n {\r\n \"FeatureLineNbr\": { \"value\": 1 },\r\n \"OptionLineNbr\": { \"value\": 1 },\r\n \"ConfigResultsID\": { \"value\": \"5\" },\r\n \"Included\": { \"value\": true }\r\n },\r\n {\r\n \"FeatureLineNbr\": { \"value\": 1 },\r\n \"OptionLineNbr\": { \"value\": 2 },\r\n \"ConfigResultsID\": { \"value\": \"5\" },\r\n \"Included\": { \"value\": true }\r\n }\r\n ]\r\n }\r\n ]\r\n}"
4961-
},
4962-
"url": {
4963-
"raw": "{{ManufacturingEndpointURL}}ConfigurationEntry?$expand=Attributes,Features/Options",
4964-
"host": [
4965-
"{{ManufacturingEndpointURL}}ConfigurationEntry"
4966-
],
4967-
"query": [
4968-
{
4969-
"key": "$expand",
4970-
"value": "Attributes,Features/Options"
4971-
}
4972-
]
4973-
}
4974-
},
4975-
"response": []
49764904
}
49774905
],
49784906
"id": "cfd3d487-b5c9-471b-81eb-7f3fbd3c7fc2",
@@ -8516,7 +8444,7 @@
85168444
"//Sign out and set the next request\r",
85178445
"var url = pm.collectionVariables.get('InstanceURL');\r",
85188446
"pm.acuFunc.singOutFunction(pm, url);\r",
8519-
"pm.execution.setNextRequest(\"Update Dates in Production Orders\");"
8447+
"pm.execution.setNextRequest(\"Update Dates in a Production Order\");"
85208448
]
85218449
}
85228450
},
@@ -8908,16 +8836,16 @@
89088836
"});\r",
89098837
"pm.test(\"Start date is 2024-01-08\", function (){\r",
89108838
" const jsonResponse = pm.response.json();\r",
8911-
" pm.expect(jsonResponse.Orders[0].StartDate.value).to.eql('2024-01-08T00:00:00+00:00');\r",
8839+
" pm.expect(jsonResponse.Orders[0].StartDate.value).to.eql('2025-01-08T00:00:00+00:00');\r",
89128840
"});\r",
89138841
"pm.test(\"End date is 2026-01-30\", function (){\r",
89148842
" const jsonResponse = pm.response.json();\r",
8915-
" pm.expect(jsonResponse.Orders[0].EndDate.value).to.eql('2026-01-30T00:00:00+00:00');\r",
8843+
" pm.expect(jsonResponse.Orders[0].EndDate.value).to.eql('2027-01-30T00:00:00+00:00');\r",
89168844
"});\r",
89178845
"//Sign out and set the next request\r",
89188846
"var url = pm.collectionVariables.get('InstanceURL');\r",
89198847
"pm.acuFunc.singOutFunction(pm, url);\r",
8920-
"pm.execution.setNextRequest('Update Dates in a Production Order');"
8848+
"pm.execution.setNextRequest('Create a Project from a Project Template');"
89218849
]
89228850
}
89238851
},
@@ -8957,7 +8885,7 @@
89578885
],
89588886
"body": {
89598887
"mode": "raw",
8960-
"raw": "{\r\n \"Orders\": [\r\n {\r\n \"EndDate\": {\r\n \"value\": \"2026-01-30T00:00:00+00:00\"\r\n },\r\n \"OrderType\": {\r\n \"value\": \"RO\"\r\n },\r\n \"ProductionNbr\": {\r\n \"value\": \"AM000037\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2024-01-08T00:00:00+00:00\"\r\n },\r\n \"Operations\": [\r\n {\r\n \"id\": \"798e7128-ac8a-ec11-817b-9b18f6aae9b8\",\r\n \"OperationNbr\": {\r\n \"value\": \"0010\"\r\n },\r\n \"WorkCenter\": {\r\n \"value\": \"WC70\"\r\n },\r\n \"EndDate\": {\r\n \"value\": \"2026-01-30T00:00:00+00:00\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2024-01-08T00:00:00+00:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"838e7128-ac8a-ec11-817b-9b18f6aae9b8\",\r\n \"OperationNbr\": {\r\n \"value\": \"0030\"\r\n },\r\n \"WorkCenter\": {\r\n \"value\": \"WC10\"\r\n },\r\n \"EndDate\": {\r\n \"value\": \"2026-01-30T00:00:00+00:00\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2024-01-08T00:00:00+00:00\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n}"
8888+
"raw": "{\r\n \"Orders\": [\r\n {\r\n \"EndDate\": {\r\n \"value\": \"2027-01-30T00:00:00+00:00\"\r\n },\r\n \"OrderType\": {\r\n \"value\": \"RO\"\r\n },\r\n \"ProductionNbr\": {\r\n \"value\": \"AM000037\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2025-01-08T00:00:00+00:00\"\r\n },\r\n \"Operations\": [\r\n {\r\n \"id\": \"798e7128-ac8a-ec11-817b-9b18f6aae9b8\",\r\n \"OperationNbr\": {\r\n \"value\": \"0010\"\r\n },\r\n \"WorkCenter\": {\r\n \"value\": \"WC70\"\r\n },\r\n \"EndDate\": {\r\n \"value\": \"2027-01-30T00:00:00+00:00\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2025-01-08T00:00:00+00:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"838e7128-ac8a-ec11-817b-9b18f6aae9b8\",\r\n \"OperationNbr\": {\r\n \"value\": \"0030\"\r\n },\r\n \"WorkCenter\": {\r\n \"value\": \"WC10\"\r\n },\r\n \"EndDate\": {\r\n \"value\": \"2027-01-30T00:00:00+00:00\"\r\n },\r\n \"StartDate\": {\r\n \"value\": \"2025-01-08T00:00:00+00:00\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n}"
89618889
},
89628890
"url": {
89638891
"raw": "{{ManufacturingEndpointURL}}ProductionOrderDatesProcess?$expand=Orders,Orders/Operations",
@@ -9009,7 +8937,7 @@
90098937
"//Sign out and set the next request\r",
90108938
"var url = pm.collectionVariables.get('InstanceURL');\r",
90118939
"pm.acuFunc.singOutFunction(pm, url);\r",
9012-
"pm.execution.setNextRequest('Create a Project from a Project Template');"
8940+
"pm.execution.setNextRequest('Update Dates in Production Orders');"
90138941
]
90148942
}
90158943
},
@@ -10359,7 +10287,7 @@
1035910287
],
1036010288
"body": {
1036110289
"mode": "raw",
10362-
"raw": "{\r\n \"Type\": {\"value\": \"Receipt\"},\r\n \"VendorID\": {\"value\": \"GOODFRUITS\"},\r\n \"CreateBill\": {\"value\": \"False\"},\r\n \"Description\": {\"value\": \"Test receipt with Expiration Date in Allocations\"},\r\n \"Details\": [\r\n {\r\n \"Branch\": {\"value\": \"HEADOFFICE\"},\r\n \"InventoryID\": {\"value\": \"ORANGES\"},\r\n \"ReceiptQty\": {\"value\": 2},\r\n \"Warehouse\": {\"value\": \"WHOLESALE\"},\r\n \"LotSerialNbr\": {\"value\": \"\"},\r\n \"ExpirationDate\": {\"value\": \"\"},\r\n \"Allocations\": [\r\n {\r\n \"Location\": {\"value\": \"MAIN\"},\r\n \"Qty\": {\"value\": 1},\r\n \"LotSerialNbr\": {\"value\": \"a\"},\r\n \"ExpirationDate\": {\"value\": \"2026-12-25\"}\r\n },\r\n {\r\n \"Location\": {\"value\": \"MAIN\"},\r\n \"Qty\": {\"value\": 1},\r\n \"LotSerialNbr\": {\"value\": \"b\"},\r\n \"ExpirationDate\": {\"value\": \"2026-12-27\"}\r\n }\r\n ]\r\n }\r\n ]\r\n}"
10290+
"raw": "{\r\n \"Type\": {\"value\": \"Receipt\"},\r\n \"VendorID\": {\"value\": \"GLORYFRUIT\"},\r\n \"CreateBill\": {\"value\": \"False\"},\r\n \"Description\": {\"value\": \"Test receipt with Expiration Date in Allocations\"},\r\n \"Details\": [\r\n {\r\n \"Branch\": {\"value\": \"HEADOFFICE\"},\r\n \"InventoryID\": {\"value\": \"GUAVAS\"},\r\n \"ReceiptQty\": {\"value\": 2},\r\n \"Warehouse\": {\"value\": \"WHOLESALE\"},\r\n \"LotSerialNbr\": {\"value\": \"\"},\r\n \"ExpirationDate\": {\"value\": \"\"},\r\n \"Allocations\": [\r\n {\r\n \"Location\": {\"value\": \"MAIN\"},\r\n \"Qty\": {\"value\": 1},\r\n \"LotSerialNbr\": {\"value\": \"a\"},\r\n \"ExpirationDate\": {\"value\": \"2026-12-25\"}\r\n },\r\n {\r\n \"Location\": {\"value\": \"MAIN\"},\r\n \"Qty\": {\"value\": 1},\r\n \"LotSerialNbr\": {\"value\": \"b\"},\r\n \"ExpirationDate\": {\"value\": \"2026-12-27\"}\r\n }\r\n ]\r\n }\r\n ]\r\n}"
1036310291
},
1036410292
"url": {
1036510293
"raw": "{{EndpointURL}}PurchaseReceipt?$expand=Details,Details/Allocations",

0 commit comments

Comments
 (0)