5

Inserts are all or nothing, but if the only issue has to do with field lengths, you could use the AllowFieldTruncationHeader, which allows the field to store just up to the maximum length instead of providing an error. Of course, this means that some data will be lost, but if it's preferable to a total failure, this might be an acceptable alternative. ...


5

SFDC has two ways of exposing REST API 1)Custom apex Built 2)Standard REST API You are trying to use JSForce for apex built while your endpoint is of Standard REST API . Use the below for standard REST API to create records // Single record creation conn.sobject("SFDC_Employee__c").create({ Auth0_Id__c: 'sfnewcheckst_d', Status__c: 'Pending - New Hire',...


4

A quick glance at the nforce source makes it appear to not have support for fetching custom labels. I can't see a way to fetch custom labels via the REST API either, nor can I find any references to custom labels in the SOAP API. Based on that I don't believe labels are readily useable off-platform without something like a custom apex REST/SOAP service (...


3

I can't believe they still haven't added this to the rest API. You can now access classes and tons of other meta-data but still no custom labels. I've written a custom REST resource to allow this (as sfdcfox suggested). It uses the VF page getContent() hack which can be explained in more detail here. VisualForce Page: <apex:page controller="...


2

To strictly answer your question: No. Either an insert succeeds or it does not. I don't know which features the npm package covers but describe (Apex, also available via API) information would be able to tell you if a custom field exists, what type it is, properties (length) it has, etc.


2

Adding aura:dependency is good practice but not required. As written in salesforce docs :- When a Lightning components app is initialized using Lightning Out, Lightning Out loads the definitions for the components in the app. To do this efficiently, Lightning Out requires you to specify the component dependencies in advance, so that the definitions ...


2

if I want to test on localhost(let's say port 3000) what should I specify for the Callback URL in the connected app? Callback URL is always where you want the access token code to be send to after successful authorization. So if you want it to be sent to a localhost on a specific port, then Yes, you will need to provide that URL in connected app. what ...


1

The relative URI is the correct argument. Two possibilities: Your REST resource does not have a GET method The URI resolution on SF side is case-sensitive. Either the name of the namespace and/or the name of the resource do not match what you have in the URI


1

I don't know what your build system looks like. If you are using Webpack to manage your CSS, you could import the path and have Webpack insert the CSS in a bundle. If you are using Create React App, you can follow these directions linked from the Design System React readme and copy the files into public and then modify index.html to reference it. There are ...


1

Navigate to your Salesforce Admin homepage. Click Administer > Manage Users > Profiles. Click the Profile Name of the user profile to which you want to extend Heroku login. Click the “Edit” button, scroll down to the Connected App Access, and select the Connected App you created in the previous page. (Repeat this step for any other user profiles that should ...


1

There is no automatic session refresh within node-salesforce when you use the password flow. In connection.js:215 it will refresh the session if the session has expired but only if you using the access_token and refresh_token instead, not password. If you have to use password, you could catch the error returned by the 401 status code in connection.js:247 ...


Only top voted, non community-wiki answers of a minimum length are eligible