Epicor Function Parameter

Hi,

I have an Epicor Function library and I would like to know if it’s possible to receive by parameter in a function a LinqRow (UD103), make some changes then call a “Db.Validate”?

Regards
Alain

I don’t believe the Db.Validate works, but you can use Business Object calls.

Hi Doug,

does the Db.SaveChanges will work? And for the first part of my post, is it possible to receive as a parameter a LinqRow (UD103)?

Regards
Al

I haven’t gone too deep into the Function Development, but I believe all the direct database access is Read Only.

As far as parameters go, more than likely you would have to convert the LinqRow to a DataSet. You can use a DataSet as a parameter.

Hi Doug,

can you tell me if there is an existing build-in function ine Epicor to convert a LinqRow to a DataSet?

Regards
Alain

Here’s one resource: Creating a DataTable From a Query (LINQ to DataSet) - ADO.NET | Microsoft Learn

Like I said, I haven’t delved into this too deeply. I don’t have a specific example, sorry.