Question

Using a Custom Field for Employee from Document on Approval Maps

  • 20 April 2022
  • 0 replies
  • 224 views

Userlevel 2

We wanted to add a field under the Employee record so we could select it when using “Employee from Document” in Approval Maps. The default fields in Employee were not working with the mapping. After many weeks, we found the solution.

We created a custom field “Approver” and added it to the Employee record. 

 

The DAC:

[PXDBString(255)]
[PXUIField(DisplayName="Approver")]
[PXSelector(typeof(Users.username),SubstituteKey = typeof(Users.fullName))]

 

The Problem:

In the very deep backend SQL, Approvals for the “Employee” field when using “Employee from Document” is expecting a username value from Users.username. We were using bAccountID, defContactID, employeeID and every other ID in the system and nothing worked.

 

The Solution:

Now we can choose ((ClaimDetails.EmployeeID.UsrApprover)) and the Approvals work great

 


0 replies

Be the first to reply!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved