Skip to main content

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
1 answer
40 views

Help with Formula Field - IF & LEFT Functions

Newbie here. Would appreciate all your help. I'm trying to write a formula for the following Scenario: Field Name - "Course Interest" has Certificate I, Certificate II, Certificate III, ...
Shanaya's user avatar
  • 13
0 votes
0 answers
70 views

Salesforce functions - No access to Calculation Matrix related Objects

We are using Salesforce functions which uses Calculation Matrix tables. we are getting following error when trying to run the code from compute environment. {"error":true,"errorMessage&...
Rajesh's user avatar
  • 43
2 votes
0 answers
54 views

Salesforce Function fails to build on deploy

I'm trying to get Salesforce Functions working on my org, and seem stuck at the last step. I followed the docs (getting a compute environment + scratch org set up, etc) up until the deploy script. ...
Brendan's user avatar
  • 21
1 vote
1 answer
109 views

How to pass variable from Apex to Salesforce Function (Typescript)?

I have this apex code to call the Salesforce Function : public String tokenExampleFunction() { functions.Function idTokenFunction = functions.Function.get('FunctionsOrg.tokenexample'); String ...
compski's user avatar
  • 1,352
2 votes
1 answer
364 views

Unable to create scratch org with Functions feature?

I've installed the latest CLI versions for SFDX and SF, but still when I try to create a scratch org with mentioned commands. I'm getting the below error: ERROR running force:org:create: Functions is ...
Babul Jha's user avatar
1 vote
0 answers
31 views

Is there a way to run a function what will self recompile if you make any changes?

I know that I can use the below commands: sf run function start local and sf run function start container But if I am making lots of small changes it is very annoying to keep killing processes and ...
KarlLivesey's user avatar
1 vote
0 answers
97 views

Use Functions to download, parse and filter large App Analytics logs

​Can somebody please help me to assess the feasibility of my solution with Salesforce Functions?   For many years I maintain an Open Source solution to receive and monitor App Error emails from ...
Robert Sösemann's user avatar
1 vote
0 answers
49 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/...
Parikhit Sarkar's user avatar
0 votes
0 answers
65 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.
humanoid's user avatar
  • 327
3 votes
0 answers
199 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 ...
Keith C's user avatar
  • 136k
0 votes
1 answer
3k 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(...
Lightning Evangelist's user avatar
0 votes
1 answer
45 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 ...
Lightning Evangelist's user avatar
0 votes
1 answer
69 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 ...
Lightning Evangelist's user avatar
3 votes
1 answer
5k 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' ...
Shrivaths Kulkarni's user avatar
1 vote
2 answers
184 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 ...
sfdcudhay's user avatar
1 vote
1 answer
211 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 ...
Mohammed younus's user avatar
4 votes
0 answers
29 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 ...
Ammar's user avatar
  • 51
1 vote
1 answer
280 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:\...
Lightning Evangelist's user avatar
1 vote
0 answers
166 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....
Lightning Evangelist's user avatar
0 votes
1 answer
228 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 ...
Vidhyasagaran Muralidharan's user avatar
1 vote
1 answer
566 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 ...
Lightning Evangelist's user avatar
1 vote
1 answer
381 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 ...
Ammar alajami's user avatar
0 votes
1 answer
134 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 ...
sfdcudhay's user avatar
5 votes
2 answers
861 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 ...
VarunC's user avatar
  • 5,950
2 votes
1 answer
461 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 ...
sfdcudhay's user avatar
0 votes
1 answer
117 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 ...
Ghanekar's user avatar
1 vote
1 answer
159 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 ...
Ghanekar's user avatar
2 votes
1 answer
306 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 ...
Ghanekar's user avatar
6 votes
1 answer
533 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 ...
Patlatus's user avatar
  • 16.8k
6 votes
1 answer
3k 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 ...
Marcelino Llano's user avatar
0 votes
1 answer
212 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 ...
lightxx's user avatar
  • 271
6 votes
1 answer
105 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 ...
Hunain Gillani's user avatar
5 votes
3 answers
890 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 ...
Ayyaz Zafar's user avatar
0 votes
1 answer
406 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 ...
Nagendra Singh's user avatar
7 votes
1 answer
1k 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?
Nagendra Singh's user avatar
4 votes
1 answer
1k 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 ...
Caspar Harmer's user avatar
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 ...
Peter Byrne's user avatar