Random Value cannot be null error on implementing EPApprovalAutomation.

It took me weeks to figure out what is happening on my screen when I implement the Standard approval automation on my customized screen.

My Customized Screen with EPApproval Automation Working
public EPApprovalAutomation<FXEstablishingFund, FXEstablishingFund.approved, FXEstablishingFund.rejected, FXEstablishingFund.hold, FXSetupApproval> Approval;

The Culprit: The NoteID field

with [PXDBGuid()] which is the default attribute when you generate new dac via Customization Project. just change it to [PXNote] because NoteID is required in EPApprovalAutomation class for the reference of Document to Document relationship.

Happy Coding!

Leave a Reply

Your email address will not be published. Required fields are marked *