Skip to main content
I want to create an app where Employees can ask for the voucher or coupon code from the manager. So in this app, Employees with multiple records having Status of previous Certification request "Pending" is not allowed. I have created Trigger for this. I have a Process Builder for the approval Process which executes and change the Certification request Status to "Approved" and assign the voucher to the user on the "first come first serve" basis. But I am getting an Error while saving the record:

 

We can't save this record because the “Admin Approval process” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: FIELD_CUSTOM_VALIDATION_EXCEPTION: Duplicate Employee Voucher Request is not Possible. You already have an active Voucher Request. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1836863178-18239 (-804958435)FIELD_CUSTOM_VALIDATION_EXCEPTION Error while saving the record
3 respostas
  1. 23 de ago. de 2024, 15:15

    @Melody Lwo @Krisztián Valkó Hi, I have a similar situation because I'm creating a flow that detects a duplicate in the object "Location", which is not supported by SF Standard.

     

    When I had my Record triggered Flow has a Fast Fields update (before save) it worked but There is a Test case that was not working. Which was, he have created an Object Addresses where we save them in CRM and then our users can select these addresses from an internal data bank and by checking a checkbox these information will populate the fields of Billing/Shipping Address. There is a flow that does this but they are after the record is saved.

     

    This means that my Flow before save checks for the addresses and then saves them in SF but if I use the fields and checkboxes from that second flow I mentioned that is after save, then it won't detect them and we are not able to detect duplicates.

     

    Any Idea how can I solve this?

     

    Thanks!

0/9000