I have been attempting to get the syntax nailed to update one ERP Table field in a json datalink file (learning this as I go, don’t know all the proper terms). I have been able to get the “ErpLogin” and “GetSalesOrderHeader” working below but no luck with the “PatchSalesOrder”.
The error I get is during the Test Live is:
All parameters set to test values in ECM Admin DataLink Manager
{
"Name": "ErpLogin",
"Url": "https://epicor10app/epicordts/TokenResource.svc/",
"Method": "Post",
"AuthScheme": "Basic",
"AuthParameter": "xxxxxxxxxxxxxxxxxxxxx",
"AllowInvalidSSL": false,
"LogPath": "C:\\ProgramData\\Eclipse\\DatalinkExecutables\\ErpLoginLog.txt",
"WSHeaders": [
{
"Key": "a",
"Value": "b"
}
],
"Columns": [
{
"Name": "AccessToken",
"Path": "AccessToken",
"ChainOutput": "@AccessToken"
},
{
"Name": "TokenType",
"Path": "TokenType",
"ChainOutput": "@TokenType"
},
{
"Name": "ExpiresIn",
"Path": "ExpiresIn"
},
{
"Name": "RefreshToken",
"Path": "RefreshToken"
}
]
},
{
"Name": "GetSalesOrderHeader",
"Url": "https://epicor10app/epicordts/api/v1/Erp.BO.SalesOrderSvc/SalesOrders(@CompanyId,@OrderNum)",
"Method": "Get",
"AuthScheme": "@TokenType",
"AuthParameter": "@AccessToken",
"AllowInvalidSSL": false,
"LogPath": "C:\\ProgramData\\Eclipse\\DatalinkExecutables\\GetSalesOrderHeaderLog.txt",
"WSHeaders": [
{
"Key": "CallSettings",
"Value": "{Company: \"@CompanyId\", Plant: \"@Plant\"}"
}
],
"Columns": [
{
"Name": "OrderNum",
"Path": "OrderNum"
},
{
"Name": "PONum",
"Path": "PONum"
},
{
"Name": "DTQuoteNum",
"Path": "ShortChar09"
},
{
"Name": "ProjectID",
"Path": "Character09"
}
]
},
{
"Name": "PatchSalesOrder",
"Url": "https://epicor10app/epicordts/api/v1/Erp.BO.SalesOrderSvc/SalesOrders(@CompanyId,@OrderNum)",
"Method": "Patch",
"AuthScheme": "@TokenType",
"AuthParameter": "@AccessToken",
"AllowInvalidSSL": false,
"LogPath": "C:\\ProgramData\\Eclipse\\DatalinkExecutables\\PatchSalesOrderLog.txt",
"CallChain": "ErpLogin",
"Body": "{ \"ShortChar09\": \"@DTQuoteNum\" }",
"WSHeaders": [
{
"Key": "CallSettings",
"Value": "{Company: \"@CompanyId\", Plant: \"@Plant\"}"
}
]
},
Can someone chime in to shed some light on what I am missing?
Thanks
MIke