For some reason, the workflow rule works as expected when changes are made on a standard page; but the workflow rule does not fire when I edit fields on the Visualforce Page, which means the problem does not come from the workflow rule criteria. When I make changes using the VF page, the changes are reflected, which means the DML operation was a success. Does anyone have a clue why the Workflow Rule does not fire when changes are made using VF page?

  • 1
    Visualforce pages that do DML via their VF controller are no different than DML done via standard UI, REST APIs, Data Loader, or other Apex DML. DML occurs at the database layer and WFRs execute due to DML changes. Have you looked at the debug log? There's not enough info here yet (use edit) to help you narrow this down
    – cropredy
    May 21 at 0:21
  • Thanks @cropredy, I'm not trained at looking at debug logs so I did not go that route
    – Richard
    May 21 at 16:33

Not a solid answer, but mysteriously I was able to update the field automatically using Flow Builder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.