Business logic method call error

When I do a trace almost every field needs populated. How do you enter a time stamp and current user?

You don’t need to, the last post I did was the minimal information needed to create one.

1 Like

if the need arises…
var timestamp = DateTime.Now;

(import Ice.Core.Session)
var sesh = (Ice.Core.Session)oTrans.Session;
var emp = sesh.EmployeeID;
var user = sesh.UserID;
var userName = sesh.UserName;

1 Like

So literally all I need are these lines of code and not all the others the wizard put in?

CRMCallAdapter adapterCRMCall = new CRMCallAdapter(this.oTrans);
adapterCRMCall.BOConnect();
if (adapterCRMCall.GetNewCRMCall("OrderHed", "1411", string.Empty, string.Empty))
{
    adapterCRMCall.CRMCallData.CRMCall[0].CallTypeCode = [code];
    adapterCRMCall.CRMCallData.CRMCall[0].CallDesc = "TEST";
    adapterCRMCall.Update();
}```

Nevermind, this is perfect. Thank you soooooo much! How did you figure out those were the only fields I needed? When I traced it, it showed all of them!

You should be able to look at the data dictionary and see which fields are required for any table.

Oh wow. So good to know. Now…where is the Data Dictionary?

found it: System Setup -> System Maintenance -> Data Dictionary