3

I am exploring Salesforce Functions in trial org. And with help of documentation i could deploy the functions. But when I try to run the functions i am getting following error -

sObject type 'Account' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

Following are enabled using permission sets/profile: Compute Access Compute Production Access Modify Metadata Through Metadata API Functions

1 Answer 1

5

Assuming this is when executing the function in Heroku, you must also authorize the Functions permission set for the queried SObject(s). I talk about that a bit here. Let me know if that doesn't help.

1
  • Thank you Scott! It worked fine. And now i understand it uses Platform Integration user to execute the functions. Apr 21, 2022 at 2:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .