I have a custom business class we're using to store information about what departments a leader can see in reporting. It has an autosequenced key field with a context of the Employee. The other values are 2 HROrganizationUnits representing the company and department they can see. I'm trying to create an alternate Create action so that the entry can be done by short description rather than having to search for the code every time.
I have it all built out, but whenever I try to submit the action, I get an error stating Organization is required even though the Organization is set (we only have 1 and it defaults in). Has anyone seen this before and have any ideas how to resolve it?
Create action LPL:
</code></p>
<div>
<div><code> CreateByShortDesc is a Create Action
Parameters
HROrganization
Employee
PrmCompany is Alpha size 20
PrmDepartment is Alpha size 20
Company is an HROrganizationUnit
Department is an HROrganizationUnit
Field Rules
HROrganization
initial value is "1"
Employee
required
PrmCompany
required
PrmDepartment
required
Action Rules
HROrganization = "1"
LocalCompanyShort = PrmCompany
LocalDepartmentShort = PrmDepartment
Company = first CompanyOrgUnitByShortDescRel.HROrganizationUnit
Department = first DepartmentOrgUnitByShortDescRel.HROrganizationUnit