|
4846 | 4846 | "//Sign out and set the next request\r", |
4847 | 4847 | "var url = pm.collectionVariables.get('InstanceURL');\r", |
4848 | 4848 | "pm.acuFunc.singOutFunction(pm, url);\r", |
4849 | | - "pm.execution.setNextRequest(\"Update a Configuration Entry\");" |
| 4849 | + "pm.execution.setNextRequest(\"Create a Contact with Attributes\");" |
4850 | 4850 | ] |
4851 | 4851 | } |
4852 | 4852 | }, |
|
4901 | 4901 | } |
4902 | 4902 | }, |
4903 | 4903 | "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": [] |
4976 | 4904 | } |
4977 | 4905 | ], |
4978 | 4906 | "id": "cfd3d487-b5c9-471b-81eb-7f3fbd3c7fc2", |
|
8516 | 8444 | "//Sign out and set the next request\r", |
8517 | 8445 | "var url = pm.collectionVariables.get('InstanceURL');\r", |
8518 | 8446 | "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\");" |
8520 | 8448 | ] |
8521 | 8449 | } |
8522 | 8450 | }, |
|
8908 | 8836 | "});\r", |
8909 | 8837 | "pm.test(\"Start date is 2024-01-08\", function (){\r", |
8910 | 8838 | " 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", |
8912 | 8840 | "});\r", |
8913 | 8841 | "pm.test(\"End date is 2026-01-30\", function (){\r", |
8914 | 8842 | " 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", |
8916 | 8844 | "});\r", |
8917 | 8845 | "//Sign out and set the next request\r", |
8918 | 8846 | "var url = pm.collectionVariables.get('InstanceURL');\r", |
8919 | 8847 | "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');" |
8921 | 8849 | ] |
8922 | 8850 | } |
8923 | 8851 | }, |
|
8957 | 8885 | ], |
8958 | 8886 | "body": { |
8959 | 8887 | "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}" |
8961 | 8889 | }, |
8962 | 8890 | "url": { |
8963 | 8891 | "raw": "{{ManufacturingEndpointURL}}ProductionOrderDatesProcess?$expand=Orders,Orders/Operations", |
|
9009 | 8937 | "//Sign out and set the next request\r", |
9010 | 8938 | "var url = pm.collectionVariables.get('InstanceURL');\r", |
9011 | 8939 | "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');" |
9013 | 8941 | ] |
9014 | 8942 | } |
9015 | 8943 | }, |
|
10359 | 10287 | ], |
10360 | 10288 | "body": { |
10361 | 10289 | "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}" |
10363 | 10291 | }, |
10364 | 10292 | "url": { |
10365 | 10293 | "raw": "{{EndpointURL}}PurchaseReceipt?$expand=Details,Details/Allocations", |
|
0 commit comments