+ Start a Discussion
Darshit Pathak 3Darshit Pathak 3 

What can be the reason if the value of formula filed evaluates to 0.0 when queried while Integration with Mulesoft. But evaluates to the expected value when code run after login as Integration user (user created for Mulesoft Integration) ?

When Sync back happens from mulesoft , trigger executes in sfdc . Trigger is calling helper class method (class is declared as without sharing) which has SOQL to return one formula field value .
When this sync back happens field from that SOQL returns 0.0 value.
But when the same code is executed after doing login as Integration User (user created for Mulesdoft Integration) it returns the expected value of the formula field.
Cannot figure out how is it happening.

Please help me your opinions, Any leads would be appreciated.