Questions tagged [node-salesforce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
771 views

Error when running npm run watch on a SLDS application

am currently working on a SLDS lwc application, but I have ran into an issue when running npm run watch where I get an error stating ERROR in ./src/client/index.js Module not found: Error: Can't ...
0
votes
0answers
26 views

How to save multiple subscribers in a list via FuelSDK-Node or how to send data from DE to a list quickly

These are actually two questions. But for me, it's enough to solve at least one of them. Task: deliver subscribers to a data extension and list from a remote source. Requirements: use FuelSDK-...
1
vote
1answer
41 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?
1
vote
1answer
183 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 ...
1
vote
1answer
51 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 ...
0
votes
1answer
716 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 ...
0
votes
1answer
515 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 ...
3
votes
1answer
474 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-...
6
votes
0answers
136 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": "...
0
votes
2answers
29 views

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

I'm using the npm package node-salesforce@0.8.0 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 ...
0
votes
2answers
529 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 ...
1
vote
0answers
362 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 ...
4
votes
1answer
2k 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 ...
0
votes
1answer
863 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 ...
0
votes
1answer
97 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 ...
0
votes
1answer
269 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 ...
3
votes
2answers
1k 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.
2
votes
1answer
775 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 ...