Hello,
I have created custom service to create/update Customer record in D365FO. It's developer VM version 24.
All works great, JSON is correctly traveling forward and backward, only data changes is not stored in database, neither insert nor update.
I can see in response in Postman or in Visual Studio debugging that customer record for the same Account ID is inserted every time with new RecId.
TTSCOMMIT is performed. Only data is not stored in DB. Even in moment after TTSCOMMIT and before service return. I cannot understand why.
Any ideas? Is there somewhere any additional parameter or attribute? Couldn't find anything similar on internet.
Thanks in advance!
Service group properties:

Service properties:

Service operation properties:

Service method:
public STKSFCustomerDataContract Customer(STKSFCustomerDataContract Customer)
{
STKSFCustomerDataContract retContract;
DataAreaId company = Customer.parmCompany();
str 20 customerID = Customer.parmCustomerID();
CustTable custTable,c1;
int i1 = infologLine();
int i2;
List errList;
STKSFServiceHelper helper = new STKSFServiceHelper();
ttsbegin;
try
{
changecompany(company)
{
custTable = helper.CreateCustomer(Customer);
select firstonly c1 where c1.RecId == custTable.RecId;
retContract = new STKSFCustomerDataContract();
retContract.initFromCustTable(c1);
}
}
catch
{
i2 = infologLine();
}
errList = helper.errorList(i1,i2);
if (errList.elements() == 0)
{
ttscommit;
}
else
{
ttsabort;
retContract = new STKSFCustomerDataContract();
retContract.parmCompany(company);
retContract.parmCustomerID(customerID);
retContract.parmErrors(errList);
}
return retContract;
}