# \#function

**URL:** https://www.epiusers.help/tag/function/357.md

[Latest](https://www.epiusers.help/latest.md) · [Categories](https://www.epiusers.help/categories.md) · [Tags](https://www.epiusers.help/tags.md)

---

## [CS0103	"The name 'Db' does not exist in the current context" in Function but not in BPM](https://www.epiusers.help/t/cs0103-the-name-db-does-not-exist-in-the-current-context-in-function-but-not-in-bpm/128374)

<div class="topic-metadata">

**Author:** [@tgwinn](https://www.epiusers.help/u/tgwinn)\
**Replies:** 8\
**Last updated:** [October 27, 2026, 3:27pm UTC](https://www.epiusers.help/t/cs0103-the-name-db-does-not-exist-in-the-current-context-in-function-but-not-in-bpm/128374 "2026-10-27T15:27:44Z")

</div>

Is there some special trick to accessing the ERP tables in a function? This code chunk works fine inside of a Custom Code block in a BPM. But when I copy/paste it into a Function, I get the error: CS0103 The name 'Db' …

---

## [Demand Entry: Help with Automatically Converting One-Time Ship To to Ship To \[2023.2\]](https://www.epiusers.help/t/demand-entry-help-with-automatically-converting-one-time-ship-to-to-ship-to-2023-2/137875)

<div class="topic-metadata">

**Author:** [@erikgeorge](https://www.epiusers.help/u/erikgeorge)\
**Replies:** 5\
**Last updated:** [October 14, 2026, 4:32pm UTC](https://www.epiusers.help/t/demand-entry-help-with-automatically-converting-one-time-ship-to-to-ship-to-2023-2/137875 "2026-10-14T16:32:38Z")

</div>

Hello! I’ve recently been attempting to create a function that will automatically convert an OTS Record within Demand Entry. However, the function seemingly isn’t actually doing any converting or changes, and I’m unsure…

---

## [Function libraries sporadically return as disabled since Linux Migration](https://www.epiusers.help/t/function-libraries-sporadically-return-as-disabled-since-linux-migration/136147)

<div class="topic-metadata">

**Author:** [@fvodden](https://www.epiusers.help/u/fvodden)\
**Replies:** 303\
**Last updated:** [August 18, 2026, 6:19pm UTC](https://www.epiusers.help/t/function-libraries-sporadically-return-as-disabled-since-linux-migration/136147 "2026-08-18T18:19:30Z")

</div>

Since the 2026.100.7 upgrade, some (all?) of our function libraries are intermittently returning as Disabled, whether called publicly via HTTP or internally from other libraries or directives. When the issue occurs publi…

---

## [Dates, Times, DateTimes, SQL, LINQ, and the Usual Confusion](https://www.epiusers.help/t/dates-times-datetimes-sql-linq-and-the-usual-confusion/135539)

<div class="topic-metadata">

**Author:** [@timshuwy](https://www.epiusers.help/u/timshuwy)\
**Replies:** 1\
**Last updated:** [June 17, 2026, 2:56pm UTC](https://www.epiusers.help/t/dates-times-datetimes-sql-linq-and-the-usual-confusion/135539 "2026-06-17T14:56:33Z")

</div>

This comes up often enough that it is worth writing down. Note that I used AI to gather and generate much of the content below using Epicor’s “Knowlege” from help, documentation and also from the web (including EpiUsers …

---

## [Theme Switcher for Kinetic Web Function Maintenance](https://www.epiusers.help/t/theme-switcher-for-kinetic-web-function-maintenance/135293)

<div class="topic-metadata">

**Author:** [@Zellington](https://www.epiusers.help/u/Zellington)\
**Replies:** 3\
**Last updated:** [June 8, 2026, 1:11pm UTC](https://www.epiusers.help/t/theme-switcher-for-kinetic-web-function-maintenance/135293 "2026-06-08T13:11:52Z")

</div>

I built a Function Themer for the Web Version of Epicor Kinetic: Epicor Function Maintenance went live for the web today and I went in to try it out. The editor works well. The thing that got me is there’s no theming or…

---

## [OrderHed Image Attachment](https://www.epiusers.help/t/orderhed-image-attachment/134264)

<div class="topic-metadata">

**Author:** [@rachelv](https://www.epiusers.help/u/rachelv)\
**Replies:** 35\
**Last updated:** [May 1, 2026, 8:45pm UTC](https://www.epiusers.help/t/orderhed-image-attachment/134264 "2026-05-01T20:45:20Z")

</div>

I’m having issues with my kinetic function that has a goal of attaching an image, taken from an API pull, to an Order. Below are the steps in my function that upload and link the images: // =============================…

---

## [Job Closing Function Help](https://www.epiusers.help/t/job-closing-function-help/132603)

<div class="topic-metadata">

**Author:** [@cpilinko](https://www.epiusers.help/u/cpilinko)\
**Replies:** 7\
**Last updated:** [February 10, 2026, 11:28am UTC](https://www.epiusers.help/t/job-closing-function-help/132603 "2026-02-10T11:28:41Z")

</div>

I need a hand getting this function to work. Background: We warranty our equipment for 1 year after shipment. There is a BPM that creates a warranty job when the original job ships. There is also a BPM that launches eve…

---

## [Update GL Account on AP Invoice Lines in Function](https://www.epiusers.help/t/update-gl-account-on-ap-invoice-lines-in-function/131437)

<div class="topic-metadata">

**Author:** [@jott](https://www.epiusers.help/u/jott)\
**Replies:** 3\
**Last updated:** [January 27, 2026, 10:06pm UTC](https://www.epiusers.help/t/update-gl-account-on-ap-invoice-lines-in-function/131437 "2026-01-27T22:06:54Z")

</div>

Hi there everyone, I’ve been working on getting AP Invoices created via a code function. I have tried many things and can get everything properly populated except the GL Account under the GL Analysis section of the AP I…

---

## [Function advice/critque](https://www.epiusers.help/t/function-advice-critque/131137)

<div class="topic-metadata">

**Author:** [@cpilinko](https://www.epiusers.help/u/cpilinko)\
**Replies:** 22\
**Last updated:** [December 4, 2025, 7:57pm UTC](https://www.epiusers.help/t/function-advice-critque/131137 "2025-12-04T19:57:29Z")

</div>

Brand new to functions. I know I’m late to the game, don’t judge me. I made my first one and it does exactly what I want it to do, but I’m curious about your thoughts. Background - our electrical engineers don’t use CAD…

---

## [Function signatures for syntax check](https://www.epiusers.help/t/function-signatures-for-syntax-check/103913)

<div class="topic-metadata">

**Author:** [@Banderson](https://www.epiusers.help/u/Banderson)\
**Replies:** 19\
**Last updated:** [September 3, 2025, 10:58pm UTC](https://www.epiusers.help/t/function-signatures-for-syntax-check/103913 "2025-09-03T22:58:19Z")

</div>

Does anyone know how to fix this? If you mess with the signatures in the functions, the syntax checker can throw up false errors. Sometimes they will go away with recycling, but this one has been stuck even after moving …

---

## [PkgControlIDBuildSplitMerge not executing MoveFromSourcePCIDToDestPCID](https://www.epiusers.help/t/pkgcontrolidbuildsplitmerge-not-executing-movefromsourcepcidtodestpcid/128757)

<div class="topic-metadata">

**Author:** [@maverick](https://www.epiusers.help/u/maverick)\
**Replies:** 5\
**Last updated:** [August 29, 2025, 8:33pm UTC](https://www.epiusers.help/t/pkgcontrolidbuildsplitmerge-not-executing-movefromsourcepcidtodestpcid/128757 "2025-08-29T20:33:04Z")

</div>

We have this code, and it will not execute a move from the sourcePCID MoveQuantity to the Destination PCID. Any idea on what may be wrong here? Thanks. try { this.CallService\<Erp.Contracts.PkgC…

---

## [Mark all Quote lines as Engineered](https://www.epiusers.help/t/mark-all-quote-lines-as-engineered/124249)

<div class="topic-metadata">

**Author:** [@ToryD](https://www.epiusers.help/u/ToryD)\
**Replies:** 18\
**Last updated:** [June 17, 2025, 6:04pm UTC](https://www.epiusers.help/t/mark-all-quote-lines-as-engineered/124249 "2025-06-17T18:04:47Z")

</div>

Hey gang, before you write vague references to things like “write a function”, “use a BPM”, or “fuggle the liftvarhaven” I am new to the world of BPM and Functions so I will need direction on where to even start. The on…

---

## [Stumped on SalesOrder.MasterUpdate and calculating Tax](https://www.epiusers.help/t/stumped-on-salesorder-masterupdate-and-calculating-tax/125834)

<div class="topic-metadata">

**Author:** [@TomAlexander](https://www.epiusers.help/u/TomAlexander)\
**Replies:** 10\
**Last updated:** [May 20, 2025, 10:55pm UTC](https://www.epiusers.help/t/stumped-on-salesorder-masterupdate-and-calculating-tax/125834 "2025-05-20T22:55:19Z")

</div>

I have a Function that receives a json dataset and creates Sales Orders. One of the steps is to calculate Tax via Avalara, which is done by toggling the ReadyToCalc field and calling a MasterUpdate: Basically this i…

---

## [Custom DLL file in Function](https://www.epiusers.help/t/custom-dll-file-in-function/124912)

<div class="topic-metadata">

**Author:** [@24x7](https://www.epiusers.help/u/24x7)\
**Replies:** 8\
**Last updated:** [April 18, 2025, 3:29am UTC](https://www.epiusers.help/t/custom-dll-file-in-function/124912 "2025-04-18T03:29:40Z")

</div>

Hi I am trying to Refer my Custom DLL file in Function, The DLL File is already copied in the Customization \> Externals and same is easily referenced in BPM’s. How to add external references in Epicor Function? We are…

---

## [JobEntry.Update Not Updating Part of Dataset in Function](https://www.epiusers.help/t/jobentry-update-not-updating-part-of-dataset-in-function/124603)

<div class="topic-metadata">

**Author:** [@tmcmullen](https://www.epiusers.help/u/tmcmullen)\
**Replies:** 1\
**Last updated:** [April 11, 2025, 1:45pm UTC](https://www.epiusers.help/t/jobentry-update-not-updating-part-of-dataset-in-function/124603 "2025-04-11T13:45:52Z")

</div>

I am working on a function called from a BPM that creates a Make To Order JobProd record to an existing Job, but I am running into an issue with the JobPart table not being updated during the update call. In the functio…

---

## [Server Log Message in Functions](https://www.epiusers.help/t/server-log-message-in-functions/121116)

<div class="topic-metadata">

**Author:** [@tmat](https://www.epiusers.help/u/tmat)\
**Replies:** 14\
**Last updated:** [April 2, 2025, 4:32pm UTC](https://www.epiusers.help/t/server-log-message-in-functions/121116 "2025-04-02T16:32:34Z")

</div>

I am relatively new to functions and raised a ticket with Epicor a few months ago as when I used the Log Message widget, or added custom code to write to the server log the messages were not showing. The function will r…

---

## [Inside a custom Epicor Function, lock reading of table until transaction is done](https://www.epiusers.help/t/inside-a-custom-epicor-function-lock-reading-of-table-until-transaction-is-done/123318)

<div class="topic-metadata">

**Author:** [@seannagler](https://www.epiusers.help/u/seannagler)\
**Replies:** 16\
**Last updated:** [February 26, 2025, 3:47pm UTC](https://www.epiusers.help/t/inside-a-custom-epicor-function-lock-reading-of-table-until-transaction-is-done/123318 "2025-02-26T15:47:59Z")

</div>

inside a custom Epicor Function, lock reading of table until transaction is done basically this is a simple function: Look at table UD05, grab the record with column Key1 == “ErpID” then increment that record’s column …

---

## [ApproveAndCheckInAll (but PartNum / GetDatasetForTree specific)](https://www.epiusers.help/t/approveandcheckinall-but-partnum-getdatasetfortree-specific/123524)

<div class="topic-metadata">

**Author:** [@seannagler](https://www.epiusers.help/u/seannagler)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 10:21am UTC](https://www.epiusers.help/t/approveandcheckinall-but-partnum-getdatasetfortree-specific/123524 "2025-02-26T10:21:52Z")

</div>

I am trying to save my BOM structure to Epicor and it works when only one call at a time is made. As soon as multiple calls get made the threads get deadlocked on: EngWorkBenchSvcContract ApproveAndCheckInAll which see…

---

## [Kinetic Dashboard - Sum Grid Column (Function?)](https://www.epiusers.help/t/kinetic-dashboard-sum-grid-column-function/121742)

<div class="topic-metadata">

**Author:** [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Replies:** 13\
**Last updated:** [December 16, 2024, 8:06pm UTC](https://www.epiusers.help/t/kinetic-dashboard-sum-grid-column-function/121742 "2024-12-16T20:06:48Z")

</div>

Creating a backlog dashboard for various uses (BAQ driven). I’m wondering if there’s a way to add a numberbox to use as a pseudo KPI. Basically to quickly provide a sum total of the Open Qty of the particular backlog. …

---

## [Epicor Function with Avalara API](https://www.epiusers.help/t/epicor-function-with-avalara-api/121146)

<div class="topic-metadata">

**Author:** [@etz](https://www.epiusers.help/u/etz)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 10:28pm UTC](https://www.epiusers.help/t/epicor-function-with-avalara-api/121146 "2024-11-21T22:28:09Z")

</div>

I have been tasked with assessing the feasibility of a project. My manager wants to determine if it is possible to create a function in Epicor that would push a customer’s email address to Avalara, provided the customer …

---

## [Cloud Customers - What is going on with Epicor Functions?](https://www.epiusers.help/t/cloud-customers-what-is-going-on-with-epicor-functions/119799)

<div class="topic-metadata">

**Author:** [@dheinrich](https://www.epiusers.help/u/dheinrich)\
**Replies:** 33\
**Last updated:** [November 13, 2024, 7:32pm UTC](https://www.epiusers.help/t/cloud-customers-what-is-going-on-with-epicor-functions/119799 "2024-11-13T19:32:30Z")

</div>

My employer is a cloud customer on the latest version of Kinetic. For a few weeks now, Epicor Functions have been severely impacted by some kind of backend issue with Epicor where every single change (any update, or new …

---

## [The name 'Json' does not exist in the current context](https://www.epiusers.help/t/the-name-json-does-not-exist-in-the-current-context/119157)

<div class="topic-metadata">

**Author:** [@jott](https://www.epiusers.help/u/jott)\
**Replies:** 11\
**Last updated:** [September 24, 2024, 9:04pm UTC](https://www.epiusers.help/t/the-name-json-does-not-exist-in-the-current-context/119157 "2024-09-24T21:04:09Z")

</div>

I am receiving this error in my custom code function: System.Drawing.Bitmap CS0103 The name ‘Json’ does not exist in the current context. I have a function that I’ve been working on. The purpose of the function is to pu…

---

## [Refresh Records on Action in FWB](https://www.epiusers.help/t/refresh-records-on-action-in-fwb/119197)

<div class="topic-metadata">

**Author:** [@tgeels](https://www.epiusers.help/u/tgeels)\
**Replies:** 8\
**Last updated:** [September 24, 2024, 5:21pm UTC](https://www.epiusers.help/t/refresh-records-on-action-in-fwb/119197 "2024-09-24T17:21:41Z")

</div>

I have a button that calls a function to allocate a single lot to a job and refreshes the screen, which is working great. The problem I’m running into is that the “Refresh all Records on Action” button in the menu is ca…

---

## [URL - Functioncall](https://www.epiusers.help/t/url-functioncall/110974)

<div class="topic-metadata">

**Author:** [@gunny72](https://www.epiusers.help/u/gunny72)\
**Replies:** 13\
**Last updated:** [May 21, 2024, 2:22pm UTC](https://www.epiusers.help/t/url-functioncall/110974 "2024-05-21T14:22:37Z")

</div>

Hi, Stupid Question … I’m looking in a few documents, trying to find how to call a function from a URL The Kinetic REST guide states this: https://\[KineticServer\]/\[KineticInstance\]/api/v2/efx/\[Company\]/\[Library\]/\[Func…

---

## [Login with different user in Epicor Function](https://www.epiusers.help/t/login-with-different-user-in-epicor-function/98767)

<div class="topic-metadata">

**Author:** [@NewUser](https://www.epiusers.help/u/NewUser)\
**Replies:** 11\
**Last updated:** [May 13, 2024, 10:13am UTC](https://www.epiusers.help/t/login-with-different-user-in-epicor-function/98767 "2024-05-13T10:13:40Z")

</div>

Good day, I am trying to create a record for Epicor Function Maintenance but I need to change user when doing this process. I have multiple companies set up in Epicor. From a function I am trying to create the same rec…

---

## [IndexOutOfRangeException when calling ERP Function from BPM](https://www.epiusers.help/t/indexoutofrangeexception-when-calling-erp-function-from-bpm/111399)

<div class="topic-metadata">

**Author:** [@jwphillips](https://www.epiusers.help/u/jwphillips)\
**Replies:** 13\
**Last updated:** [May 3, 2024, 6:51pm UTC](https://www.epiusers.help/t/indexoutofrangeexception-when-calling-erp-function-from-bpm/111399 "2024-05-03T18:51:16Z")

</div>

I have a BPM on SalesOrder.Update for creating a new ShipToMFBill when a user checks a UD checkbox on a SalesOrder. The Manifest Billing info of the Sales Order is used to create a ShipToMFBill for the Customer and Ship…

---

## [BAQ in Function](https://www.epiusers.help/t/baq-in-function/113767)

<div class="topic-metadata">

**Author:** [@Max\_Delgado](https://www.epiusers.help/u/Max_Delgado)\
**Replies:** 23\
**Last updated:** [April 20, 2024, 1:44am UTC](https://www.epiusers.help/t/baq-in-function/113767 "2024-04-20T01:44:02Z")

</div>

Good afternoon and thank you in advance! I am fairly new to Epicor and I have built a function that checks a partNum to see if it has a revision, if it does not, it will create one, set the revision and give it a descrip…

---

## [Function Fails when Calling Another Function in same library if it requires transaction](https://www.epiusers.help/t/function-fails-when-calling-another-function-in-same-library-if-it-requires-transaction/96992)

<div class="topic-metadata">

**Author:** [@john.young](https://www.epiusers.help/u/john.young)\
**Replies:** 19\
**Last updated:** [November 7, 2023, 1:39am UTC](https://www.epiusers.help/t/function-fails-when-calling-another-function-in-same-library-if-it-requires-transaction/96992 "2023-11-07T01:39:46Z")

</div>

I’m trying to call function B from function A but and found that as soon as I enable requires transaction on A or B the function throws the following error “Sorry! Something went wrong. Please contact your system adminis…

---

## [Automating DMT PO receipt Combined](https://www.epiusers.help/t/automating-dmt-po-receipt-combined/108396)

<div class="topic-metadata">

**Author:** [@cmwojta](https://www.epiusers.help/u/cmwojta)\
**Replies:** 3\
**Last updated:** [October 26, 2023, 7:50pm UTC](https://www.epiusers.help/t/automating-dmt-po-receipt-combined/108396 "2023-10-26T19:50:26Z")

</div>

I am trying to automate the DMT PO receipt Combined Process. The route I’ve been taking is using Power Automate and then calling an API that runs a function. I convert the json Data into Erp.Tablesets.UpdExtReceiptTables…

---

## [Convert Erp.Tablesets to System.Data.DataSet](https://www.epiusers.help/t/convert-erp-tablesets-to-system-data-dataset/64767)

<div class="topic-metadata">

**Author:** [@jkane](https://www.epiusers.help/u/jkane)\
**Replies:** 12\
**Last updated:** [September 25, 2023, 7:53am UTC](https://www.epiusers.help/t/convert-erp-tablesets-to-system-data-dataset/64767 "2023-09-25T07:53:18Z")

</div>

I am trying to write a function that returns a DataSet and have created the signature of my function to have the response parameter be a DataSet. When I am in the design of the function, I am invoking Erp.SalesOrder.GetB…

[Next page](https://www.epiusers.help/tag/function/357.md?match_all_tags=true&page=1&tags%5B%5D=function)
