Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [node-salesforce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Failed to Deploy Apex classes with sfdx mdapi

In my nodejs code, I created a function to deploy all apex classes i have in a folder within the project. that's the part of the code responsible for that : function deployAllApexClasses(orgAlias, ...
TheHmad Al's user avatar
0 votes
0 answers
46 views

OAuth2 connection inconsistency using JSforce

My Nodejs app has the option for users to sign-in using their devOrg. And my app is establishing an OAuth2 connection using authorization code grant. The whole sign in works perfectly fine. After the ...
Aslah P Hussain's user avatar
0 votes
1 answer
139 views

salesforce-ux/design-system lib is not displaying slds icons in lwc oss

I am using LWC oss framework to play with lightning-base-components npm package. I have used 'salesforce-ux/design-system' to use SLDS.I could use base components as lightning web components with SLDS....
Baba Shaik's user avatar
1 vote
1 answer
1k views

PubSub API Error subscribing from a replay Id

I am trying to connect to salesforce using PubSub API communication in order to receive events from SF, I am using the following project example: https://github.com/pozil/pub-sub-api-node-client. ...
Albert's user avatar
  • 21
0 votes
0 answers
468 views

Download docx file from Salesforce file object

I am trying to download a docx file from salesforce and create a pdf file out of it using node js. I have stored the docx file in Salesforce file object and i am passing a json. The .docx file ...
sfdc_to_learn's user avatar
0 votes
0 answers
157 views

Not able to call Rest API from node-salesforce library

I am trying to hit salesforce restAPI using node-salesforce(primarily - jsforce) and here is the code var jsforce = require('node-salesforce'); restService.post("/searchAppointment", ...
SFDC buddy's user avatar
3 votes
1 answer
6k 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
2 votes
1 answer
1k views

error in node JS and SF integration via jsforce using JWT

Premise: I need to integrate SF with NodeJs using JWT. I'm following Salesforce Developers Session for this purpose. As of now the entire setup of NodeJs is only in local. According to the video I ...
user43598's user avatar
  • 517
1 vote
1 answer
549 views

Not able to deploy LWC OSS app to Heroku

Getting the following error when I am trying to deploy an LWC OSS app to Heroku, I tried to deploy my app which had customizations got the same error, but now this is an LWC OSS fresh installation ...
Somya Tiwari's user avatar
1 vote
2 answers
633 views

Could Not Find module "lightning/ariaObserver" LWC OSS

I am trying to implement a project with LWC OSS, when trying to import lightning-input I am facing the following error. I tried to import the lightning-button and I was able to import the same ...
Somya Tiwari's user avatar
0 votes
0 answers
463 views

jsforce logout functionality

In one of my node project, I am using jsforce oauth2 to connect to Salesforce. This is working nicely. Below is the code I am using for logout functionality. This is also working fine without any ...
Somnath Paul's user avatar
1 vote
1 answer
1k views

SFCC - Custom Controller and oAuth

I am creating a custom controller for a SFCC Commerce Cloud store. Because I need to have communication with Third-party systems, I created a custom REST API controller to be able to receive some ...
Jason C's user avatar
  • 31
0 votes
1 answer
383 views

Call API from LWC OSS

I created an LWC OSS app with express server using npx create-lwc-app: Do you want to use the simple setup? Yes Package name for npm demo-app Select the type of app you want to create Standard web ...
Badbaxx's user avatar
  • 385
0 votes
1 answer
4k views

ERROR running force:auth:web:login: spawn UNKNOWN

I am getting "ERROR running force:auth:web:login: spawn UNKNOWN" on Windows 10 when trying to authorize sandbox org from VS Code. I have already tried changing default browsers and have ...
Aditi Deshpande's user avatar
0 votes
1 answer
633 views

Sfdx vs code Extension causes high cpu load

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.51.1 . Authorize an Org : Redirecting to Browser but after logining in the ...
Tarun teja's user avatar
2 votes
1 answer
3k views

Call to REST API works in CURL but not with Node app

I'm trying to make a REST API call to get a list of communities, using Axios from node. Here's the code that is getting called; async (req, res, next) => { try { console.log(`going to ...
adam.sellers's user avatar
1 vote
1 answer
164 views

Is it posible to use npm in marketing cloud pages?

I know NPM is made to use of JS packages in node.js environment. But I was wondering, is there a way to install packages in MC so I can require() in cloud pages?
yoni349's user avatar
  • 133
7 votes
2 answers
6k views

Can we use NPM packages in my LWC Custom Component?

I am calling third party REST API using fetch() method in my LWC Component. Now wanted to use npm package to handle the request in LWC JS Controller. Is there any way to include the npm package in ...
Tilak Raj's user avatar
  • 181
1 vote
1 answer
101 views

nforce org.getUrl(url,cb) - value of url

I have a Node app running on heroku where I am using the nforce lib. I received { Error: Could not find a match for URL error.} while using org.getUrl from nforce library. For the url string, I have ...
Karan Madhwani's user avatar
0 votes
1 answer
1k views

Lightning components not added as dependency in lightning out app are visible to external app

I'm working on lightning out app to authenticate and expose few lightning components for an external node app. OAuth Access Token is used to authenticate user. It seems to be working fine just that ...
Ashish Sharma's user avatar
0 votes
1 answer
1k views

Calling Apex REST from node/express framework

I have to call an Apex REST API I created in salesforce from my node application. I have created the connected app in salesforce and required express and jsforce in my node application. But, I'm ...
Gaurav Saini's user avatar
3 votes
1 answer
1k views

How should I import Design System React css?

I tried using Lightning Design System React doing what's under the Getting Started section. I've installed the npm modules as explained: npm install @salesforce-ux/design-system @salesforce/design-...
Fabien Taillon's user avatar
6 votes
0 answers
264 views

Push topic message event type is always "updated" even when inserting object

I'm subscribed to two different push topics, and one of them doesn't register any event types as "Create" only as an "Update". My config for the working push topic is as follows: { "Name": "...
Micaiah Reid's user avatar
0 votes
2 answers
39 views

Is there a way to still create a contact even if some custom fields fail?

I'm using the npm package [email protected] to write a custom integration with Salesforce. The package works fine most of the time, the problem arises when a user selects maps our contact data to ...
ILikeTacos's user avatar
1 vote
2 answers
865 views

Create Login for Heroku App

Currently my Heroku app is completely based on the static settings passed in app.json file. How to add login screen to the Heroku app? and, Can this information be stored, when next time user loads ...
ipradhansk's user avatar
  • 2,337
1 vote
0 answers
372 views

node.js - How do we send a "user-initiated" email?

I can create a Triggered email and send it to lists. In addition to sending a triggered email, I need to send "user-initiated" email, or an email to a list. Apparently sending a user-initiated email ...
DavidMadison's user avatar
4 votes
1 answer
4k views

How to call Standard REST service in POST request using JSforce?

I am using JSforce, a module of Node.js for Salesforce. The login credentials are obviously not correct in this script but they are correct in original script and they are working fine. Here is app.js ...
Waseem Abbas's user avatar
1 vote
1 answer
1k views

Streaming API not working with JSForce after token refresh

I'm currently trying to get my application running on Heroku to listen for events from the Streaming API, but have had no success. The application works fine when I'm testing it locally against my org ...
jonnybro's user avatar
  • 1,794
0 votes
1 answer
132 views

Jsforce - jsforce = require('jsforce'); errors out

When i install jsforce on my node and add following code the page errors out "application error" what am i doing wrong? var jsforce = require('jsforce'); am new to node.js and express and jsforce so ...
Manju's user avatar
  • 558
0 votes
1 answer
389 views

Difference between logging in into salesforce sandbox with and without consuming wsdl?

I am very new to Salesforce and it's API. I am having a sandbox org and with it I have url(dev sand box ), username, password, security token and last but not the least partner.wsdl My aim was to ...
Mozak's user avatar
  • 133
3 votes
3 answers
3k views

Get Custom Labels via API

What is the easiest way to get a custom label from outside the platform (eg: node js or other app)? I'm using nforce, but surprisingly don't see any api methods to get custom labels.
NSjonas's user avatar
  • 10.2k
2 votes
1 answer
945 views

How to handle session invalidation for username / password OAuth flow?

Question What's the proper way to monitor for session timeout and automatically get a new session using node-salesforce? Background Building a basic node.js app on heroku. Using the OAuth2 ...
Ralph Callaway's user avatar