Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [create-records]

The tag has no usage guidance.

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

Flow assignment not populating field

So I have a flow that assigns values to create records and it appears that all but one field assignment is not working/populating despite the assignment correctly appearing in the debug log. The ...
patriciajlim's user avatar
1 vote
0 answers
41 views

Flow not Triggering as expected

Flow should create a "move" when a repair record is created or updated with the repair vendor as "Rau Warehouse". The repair record I am using meets that criteria, but I have not ...
Alex's user avatar
  • 13
0 votes
0 answers
23 views

Not able to search in lookup when using sforce.one.createRecord

I'm employing sforce.one.createRecord("customObject", "{!jobRecordTypeID}", {!lightningPrepopulatedFields}) within one of my Visualforce pages. The lightningPrepopulatedFields are ...
Kat's user avatar
  • 1
1 vote
0 answers
36 views

Platform Event Trigger Flow - Flow Execution Error Event

Scenario: I have created a Flow that is triggered by the Flow Execution Error Event. So, if any Flow encounters any errors, this Flow will create a log of that error as records in the Error Log Object....
Sham Hiruthik's user avatar
0 votes
0 answers
24 views

Accessing Ids for Create Records when flow executes a Partial Save + Fault Element

I am trying to understand how fault paths work with Create Records. As I understand it, Create Elements automatically implements Partial Save, like Database.Insert can in apex. Example - I have three ...
BritishBoyinDC's user avatar
-1 votes
1 answer
38 views

Getting error while creating account with the help of LDS function createRecord

error is : enhancedErrorType : "RecordError" message : "An error occurred while trying to update the record. Please try again." Code is js code: import { api, LightningElement } ...
Adil Syed's user avatar
0 votes
3 answers
438 views

How can I limit the creation of new records to 1 record per parent record?

Is there a solution to limit the creation of 1 record, per parent record? If I disable the "new" button, is there a specific filter for this scenario? If I should establish database control, ...
user avatar
-1 votes
1 answer
631 views

Get ID of newly created record in screen flow

I know there is a similar question, however it did not help me all the way through. I have a screen flow to clone a Quote record. I use a screen flow because my Quote object is master to 4 other ...
Matheus Boechat Alcântara's user avatar
1 vote
1 answer
397 views

Create New Record Window Blank

I am a Salesforce Admin and I am trying to create a new record from a related list on the the Opportunity Object. I have FLS on all fields on both objects. It works on one app but not the other. I ...
Patrick's user avatar
  • 29
0 votes
1 answer
189 views

createRecord failing - need help logging error

Our org inherited a complex screen flow that uses an LWC to create and update contact records. The flow works just fine when run as sysadmin, but does not work when run as a standard user. I confirmed ...
Bill Smith's user avatar
1 vote
0 answers
347 views

createRecord (UI RecordAPI) in LWC Doesn't Fire Platform Event

Is it possible to fire a PE from within LWC without needing an Apex controller by using createRecord UI API? Here is what I have as a headless quick-action component import { createRecord } from "...
Ozan Botan's user avatar
1 vote
1 answer
755 views

Is it possible to restrict picklist values for a lightning-input-field?

Currently, it seems that there is no way to remove some of the options for a picklist while using the lightning-input-field (in my case on the lightning-record-edit-form). The only solution I came up ...
Ivan Sudakov's user avatar
1 vote
1 answer
593 views

Opportunity Name required on Create even for Before Save Record Triggered Flow

I have a Record Triggered Flow (Fast Update , before Save) Flow is executed when an Opportunity is Created or Updated. The flow auto populates the name of the Opportunity based on a standardized ...
GroundToCloud's user avatar
0 votes
1 answer
2k views

Trying to get a flow to create a new record in related object but only option is $Record

I'm learning to create a more complex flow, at least for me, and I'm stuck. I've been searching, but I might be missing the right keywords, so hopefully you can help me. I have those two objects: ...
Sebbie's user avatar
  • 91
0 votes
1 answer
963 views

Lightning record edit form is not navigating to record detail page after saving record

I have lightning-record-edit-form and I need to navigate to the record detail page after it is successfully created. I tried the below code and it is not working. What should I change here? HTML Code:...
coder123's user avatar
  • 107
1 vote
1 answer
64 views

Can you create a record in Aura Silently?

I use an aura component as a Global Action, linking to an external website. I would like to track clicks of this action by creating a "clicktracker__c" record. Is it possible to create a ...
Ryan Sherry's user avatar
-1 votes
1 answer
176 views

Creating a contact with a custom record type from a household

I have a set of custom record types for Contacts. From the Manage Household function, I would like to create a Contact record with an ability to choose one of the custom record types for Contacts. How ...
Guy Incognito's user avatar
0 votes
1 answer
189 views

Can community user create Account in community page?

I want to create account in community page when a community user clicks the button in VF page set in community page. I tried many ways but now I am aware this is impossible by limitation of the ...
Rio Nish's user avatar
7 votes
1 answer
2k views

How can I create a new record, with record type and default field values, presenting a standard layout and without navigating from the current page?

I am aware of the following options, but none of them quite do the job (and here's why): Option What it can and cannot do Aura component and the force:createRecord event Using this event I can open ...
Phil W's user avatar
  • 36.7k
0 votes
0 answers
595 views

lightning-record-form doesn't show fields from the page layout

I created an lwc component which has just the <lightning-record-form></lightning-record-form> and this component is used in the quick action to create a record. It works fine for the ...
Manish Anand's user avatar
0 votes
0 answers
39 views

How to use Record Type for this specific question

I am in the process of adding a new object to my org. I am unsure how to store all the information I need on this object. I need to have 5 sections every time I update this object: 3 sections that ...
Ruth's user avatar
  • 3
1 vote
0 answers
804 views

Error when flow tried to create records: INVALID_CROSS_REFERENCE_KEY: Record Type ID: this ID value isn't valid for the user: 012000000000000AAA

setupForObjectWithNoRecordType() { let defaultRecordType = '012000000000000AAA'; this.recordType = defaultRecordType; this.layout = null; this.recordType = defaultRecordType; this....
Oliver Bolden's user avatar
0 votes
1 answer
56 views

How to reset page on cancel button using RecordEditForm in salesforce aura components

Cancel button is not working while using recordeditform
sandhya 's user avatar
0 votes
0 answers
1k views

LWC Pre-populate default values during record creation

I am trying to Pre-Populate some of the values during the record creation using NavigationMixin I am using below code this[NavigationMixin.Navigate]({ type: 'standard__objectPage', ...
Manish Anand's user avatar
0 votes
1 answer
706 views

Trigger - Create new record and update lookup field with the related record

I have two objects which have a lookup relationship. Object 1 - Task Object 2 - Bonus__c When a task is updated to 'Completed', I am creating a Bonus__c record. How to update the lookup field on Task ...
Nick's user avatar
  • 1
0 votes
1 answer
463 views

Records created using LWC not getting populated with information

I am creating a pop-up modal to create new records for a custom object Student__c using LWC. When I am clicking on the Save button a record is getting created but the fields are all blank. .html <...
Night Guy's user avatar
  • 214
2 votes
1 answer
3k views

How to Create Record from LWC using External Id in lookup fields

I'm trying to create an object in LWC, without using Apex. So I found out that we can do that with CreateRecord from uiRecordApi : But I'm trying to create a Custom Object (ClientMember__c in our ...
Yaac0's user avatar
  • 165
0 votes
1 answer
3k views

Deployment : Deploy standard quick action which is creating member plan record

We are trying to deploy a quick action(Add_Benefit_Plan ) which is present on Account Object. Action Type of this quick action is 'Create Record'. This quich action create the Record in Member Plan (...
sunil Bhoslae's user avatar
0 votes
0 answers
475 views

Insufficient Privilege on id:[] accountcontactrelation create record failed

Context Account read privilege is at user level Sharing rule allows Users to see other User's Account records, Read privilege only. An LWc on a Visualforce Page allows a user to perform some business ...
BeginnerArtist's user avatar
1 vote
0 answers
354 views

How to find logic that creates a record

I have duplicate records being created randomly in my org. Is there a way to trace down where all logic is occurring that is creating these records? Something like "Where used" but at the ...
Bill Woodson's user avatar
0 votes
0 answers
173 views

Creating Records with restriction rules enforced

I have a RestrictionRule set up on a custom object that compares a number field on said object to a custom number field on the current User ($User) record. The rule operates as expected for existing ...
David Culbreth's user avatar
1 vote
2 answers
13k views

get ID of Create Records element in Flow?

I have a Create Records element in flow. I need the ID of the record created in this element, but I can't see anything like 'Store Id'. Is it possible?
CPS's user avatar
  • 345
7 votes
2 answers
8k views

Portal user cannot edit own account and cannot create new contacts (portal users cannot own partner accounts)

I'm creating this question to share the errors i've found trying to enable Customer Portal Users to edit their Account record, and to create new Contact records, and the solution i've found. I do it ...
José Ureña's user avatar
0 votes
1 answer
14k views

Flow Formula with a Picklist Field

I am building a Flow that creates a new Opportunity if an Opportunity is Closed Won and meets a certain criteria based on a custom Picklist field called Coupon Type Used(Coupon_Type__c). The Picklist ...
NoviceAdmin80's user avatar
0 votes
0 answers
662 views

Is it possible to use object specific fields in a Global Action?

I want users to be able to create a Case from a custom object Order__c using just a button and a pop-up form with some fields. A Quick Action would be perfect, but alas, Case is not a related object ...
Sander de Jong's user avatar
-3 votes
1 answer
2k views

Creating a 100K records in Account salesforce object using apex code [closed]

I am trying to create an 100K Account records in my salesforce org using apex code in developer console, I managed to create till 1000 by this apex code. List<Account> list1 = new List<...
Frank's user avatar
  • 1
1 vote
1 answer
911 views

How to get property from lightning web component based on button clicked

I have a dynamic lwc that generates related lists dynamically. I want to add a New button to the component but want to be able to dynamically get the component from which the new button was clicked so ...
Thomas's user avatar
  • 2,298
2 votes
1 answer
334 views

force:createRecord defaultFieldValues not working with dependant picklist

I'm working with force:createRecord trying to pre-populete some field values and everything is working fine except for the dependent picklist I'm filling. let createRecordEvent = $A....
molinet's user avatar
  • 925
0 votes
2 answers
897 views

How to prevent Navigate to an record Detail Page

How would you create a relatedList record and stay on the same page instead of redirecting to the newly created record? the below code works fine but the problem is that it's redirecting. here is my ...
Nick's user avatar
  • 7,022
1 vote
0 answers
254 views

Unable to create a new Account via Apex

I am facing the issue where I am unable to create a new Account object via apex. However, I can create an account manually. I was wondering if it is related to permissions then I shouldn't be able to ...
Badar's user avatar
  • 45
0 votes
1 answer
1k views

Insert record from static resource csv

I have csv file with account records and want to insert that records via apex. How can i do it and dynamically find necessary fields? I can only manually assign them and its hard to parse cause of ...
Tirkocuyda's user avatar
0 votes
1 answer
100 views

Populating date on e.force:createRecord

I'm trying to populate the last day of the year on the CloseDate (Date) field. I've tried everything from this link: https://stackoverflow.com/questions/13255114/retrieve-the-last-day-of-the-year-in-...
ThatGuy's user avatar
  • 85
0 votes
0 answers
661 views

Looping without a collection variable in flow

I am working on a requirement to create child records based on the field value present in the parent record using flow. If Obj__c is the parent object and Ch__c is its child object and if count__c is ...
Suhasini's user avatar
  • 307
0 votes
1 answer
482 views

Creating records on click of a button

We have 3 objects Parent, Child, GrandChild. We have a button called "Create Records" on the record detail page of Parent object. On click of that button, the requirement is, using the field ...
Suhasini's user avatar
  • 307
0 votes
0 answers
519 views

platform event not created from flow

I created a flow that triggeres on every created lead and publishes a platform event "leadCreated". Whenever I manually add a lead in salesforce lightning UI, the platform event is created ...
Julius Diedenhofen's user avatar
0 votes
1 answer
3k views

How can I add a new field before writing the data received from record-edit-form?

I have an LWC component and I'm trying to add a new record using record-edit-form: <lightning-record-edit-form object-api-name={objectApiNameExpenseCard} ...
unique user's user avatar
0 votes
1 answer
73 views

How can I track the moment when a new object field is added in a batch class?

I have a batch class: public class DataValidation implements Database.Batchable<sObject>, Database.AllowsCallouts{ private List<String> missingDates; public ...
unique user's user avatar
1 vote
1 answer
6k views

Standard Create-record modal in LWC without page redirect?

Is it possible to call the standard create record modal without invoking a page redirect. After reading this thread I learned that you can call the create record event using lightning navigation mixin....
Thomas Raynold's user avatar
0 votes
1 answer
547 views

Sharing rules restrictions read-only

Is it possible to prevent a user who has read-only acces to an object OWD Private creating child records with another owner of the parent record. I currently have a custom object where I can add child ...
Thomas's user avatar
  • 2,298
0 votes
1 answer
1k views

data loader import - no value for mandatory fields

I need a little help with a data loader import. I have a .csv with account records and some of the fields need to have a value, they're required. I need to know how can I import the file because there ...
Simona Croitoru's user avatar