Questions tagged [salesforce-functions]

Salesforce Functions are code run on-demand in the Salesforce trusted compute cloud. Functions can be written using Java, and Node.js with JavaScript/TypeScript and invoked using Apex after deployment.

Filter by
Sorted by
Tagged with
1 vote
0 answers
21 views

salesforce functions debugging issue

I am not able to use "Debug Invoke" feature from payload.json -- getting following error: Unable to access the function in "/Users/dev/Desktop/dev/FuncitonsDemo3/functions/...
0 votes
0 answers
14 views

How can we check 'sf env create compute' status for Salesforce Functions?

Does anyone know how to check the status for sf env create compute command? There doesn't seem to be a way to check with sf help.
  • 327
0 votes
0 answers
34 views

I want attach csv to opportunity using salesforce function

Hello I want to Attach document to a record which is a csv file, I want to use the salesforce function for that. Below is my code and it is giving me some error. public class MyfunctionFunction ...
2 votes
0 answers
50 views

Anyone using Salesforce Functions to read and write via SFTP?

Trying to figure out whether to look further into using Salesforce Functions to read and write and also transform large documents via SFTP. Three barriers to this are: The pricing - not cheap: see ...
  • 131k
0 votes
2 answers
514 views

TypeError: Cannot read properties of undefined (reading 'message') when attempting to deploy Salesforce Function

I am looking to deploy a Salesforce Function to a compute environment and am getting below error in terminal: sf deploy functions -o myComputeEnv Pushing changes to functions... failed TypeError: ...
0 votes
1 answer
550 views

ERROR: transport error 202: bind failed: Address already in use when attempting to start a Salesforce Function

I am seeing this error in terminal when trying to start a function: ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(...
0 votes
1 answer
23 views

Salesforce Function returns Success 200 response locally, but the response body is empty and doesn't match my expected output structure

Is there anything I should be doing for code changes in my Salesforce Function to take effect? I am getting an empty response which doesn't match my expected output. Using target-org myOrg login ...
0 votes
1 answer
28 views

Error: Request failed with status code 403 while creating a compute environment for Production

I was able to create compute environments successfully in sandboxes. When I attempt to do the same for Production: > sf env create compute -o MyOrgAlias -a MyComputeEnv I get: > Creating ...
2 votes
1 answer
160 views

sObject type '' is not supported - Salesforce Functions

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' ...
0 votes
0 answers
51 views

Error when try to deploy salesforce functions

I have created salesforce functions and created compute environment .But it is giving me the below error when i try to deploy my functions Pushing changes to functions... failed » Error: Invalid ...
1 vote
1 answer
100 views

salesforce function : Pushing changes to functions... failed

When I deploy function to connected org using command sf deploy functions --connected-rg=rule_engine I am getting the following error: Pushing changes to functions... failed TypeError: Cannot read ...
4 votes
0 answers
28 views

Are there any container recycling in SF Functions computing environment?

Does anyone know (through some documentation, or webinar,..etc) if Salesforce Functions computing environment is doing "container recycling" on periodic basis? something similar to dyno ...
  • 51
1 vote
1 answer
59 views

Error: spawn C:\Program Files (x86)\sf\client\node_modules\@heroku\functions-core\bin\benny-windows.exe ENOENT Code: ENOENT

I am attempting to start a Java-based function from within the desired function folder in VS Code Terminal via the command: sf run function start However, it results in an error: Error: spawn C:\...
1 vote
0 answers
75 views

How to read Lightning Files (ContentVersion data) using Salesforce Functions?

This appears like a duplicate of this question, but it is not. I am looking to read the contents of a file attachment (ContentVersion) in Salesforce. package com.example; import com.salesforce....
0 votes
0 answers
57 views

NOT_FOUND: The requested resource does not exist

When I Tried to Delete the Opportunity using function.It is Not getting deleted Error:NOT_FOUND: The requested resource does not exist Apex Class: public with sharing class FunctionTest { Public ...
0 votes
1 answer
81 views

Function invocation from triggers are currently not supported

1)When I Try to call the Function in the Synchronous way in the apex trigger I am getting below Error "Function invocation from triggers are currently not supported" Apex Class: public with ...
1 vote
1 answer
171 views

How to create a File (ContentVersion) via Java-based Salesforce Functions using a byte array?

I have a byte array in Java-based Salesforce Function that needs to end up as a .tiff image in Salesforce as a ContentVersion record (Lightning File tied to a specified parent id). Here is what I have ...
1 vote
1 answer
133 views

I'm not able to login to SF Functions account

Can you please help about the following issue i'm facing when try to connect to SF function account? I have a trial org to test SF Functions feature and it has the SF Functions activated, I'm using ...
0 votes
1 answer
64 views

Not able to create record with custom fields in Salesforce Functions

I have created salesforce function (node js) which will create account record when i invoke it from Apex . I amable to create account record with standard fields . But when i include custom field the ...
4 votes
1 answer
212 views

Unable to read Content/Files within organization using Salesforce Functions

I'm trying to query Files (ContentVersion & ContentDocument) but unable to read any data. At first I thought it was that running user does not have access to Files, but then I found that when I ...
  • 5,676
2 votes
1 answer
136 views

unable to create compute environment for salesforce functions

I have created Salesforce functions and run it locally . I am trying to create comput environment to deploy my function .But i am getting the below error. Creating compute environment for org ID ...
0 votes
1 answer
49 views

Making HTTP callout from salesforce.com functions is possible? [closed]

I want to make HTTP callout from salesforce.com functions and download data from Pardot in csv format and store it in salesforce files. is it possible to make such a callout? In documentation as well ...
1 vote
1 answer
75 views

salesforce.com functions Enable Test Space option is greyed out and unable to Turn it on in trial org of functions

Register for trial developer org for functions go to set up > functions > Set Enable Test Space to TRUE. Unable to set Enable test space to TRUE. the option is greyed out Has anyone tried to ...
2 votes
1 answer
169 views

salesforce.com functions command to create a compute environment throws error

I am planning to do a POC on salesforce.com functions. i registered for SFDC trial org for functions and i am trying to create a compute environment as mentioned below trying to run the command sf env ...
5 votes
1 answer
307 views

Can salesforce functions be released as part of Salesforce managed package on AppExchange?

Can salesforce functions be released as part of Salesforce managed package on AppExchange? We build Salesforce package which connects to ruby application. We want to establish some Web Sockets ...
  • 13.9k
6 votes
1 answer
716 views

Type is not visible error when deploying a Salesforce Function

I recently got access to Salesforce Functions and I am trying to use the GenericFunctionInvoker.cls class from the functions-recipes repository. FunctionController.cls looks like this: public with ...
0 votes
1 answer
94 views

What are your opinions on Salesforce Functions? What about the future of APEX? [closed]

So, given that SF Functions are GA now, and people can write Functions in Java / JS / [...], what are your opinions about Functions? Will that make it into the core product and sooner or later replace ...
  • 271
6 votes
1 answer
79 views

Do Customer Org also require salesforce functions License? When installing an APP that is bulit using salesforce function

I'm quite new to the whole Salesforce infrastructure. My question is: If I build an APP using Salesforce Functions License, and I utilise the salesforce function to create a managed released package ...
3 votes
3 answers
376 views

Can we enable Salesforce Functions in Developer Edition Org?

We already have a development edition org where we have been creating versions for a managed released package and deploying on production orgs. Now we would like to use Salesforce Functions. But when ...
0 votes
1 answer
262 views

Not able to invoke, Java, Javascript or Typescript function locally (MAC OS)

I have updated my sfdx to latest version nagendrasingh@Nagendras-MacBook-Pro javascriptfndemo % sfdx version sfdx-cli/7.121.8 darwin-x64 node-v14.18.0 Ny node version and npm version both are good ...
7 votes
1 answer
736 views

How do I enable functions in my DevHub org?

I have enabled DevHub in my developer edition org. But I am still not able to enable "Salesforce Functions". Any idea?
4 votes
1 answer
738 views

Salesforce Functions Use Cases

It looks like Salesforce Functions will be in beta soon (apparently they will be available sometime after Spring 21... and we just got that). What will be the killer app / use case that will really ...
14 votes
1 answer
1k views

Where are Salesforce Functions?

So, we hear all the noise about 'evergreen' / Salesforce Functions (or whatever the new name is) and we go wild with excitement. Where is all this stuff? We (our organization) are on Spring '21. Is ...