+ Start a Discussion
birthusbirthus 

can we call workflow form apex code?

I want check if my object after changes it's fields values in code will fire workflow rule.
Is it possible?

sfdcfoxsfdcfox
Yes, this is a standard feature of the platform. Please be aware that changes caused by workflow will also call triggers again, so beware of infinite loops.
birthusbirthus

Sorry  - I might wasnt be clear enought.

Here situation:
I have some object get by SOQL query, in my class I chnge value in some fields.
Is is possible to somehow get workflow rules entry criteria and check if this object after my changes will fire those workflows?
Ofcourse without updating this object or starting those workflows actions.

Sandeep001Sandeep001

No you cannot do this. WF rules will check the entry criteria at runtime.