Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [create-records]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
7 views

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

Cancel button is not working while using recordeditform
user avatar
-1 votes
0 answers
15 views

VRNA__Policy__c record not Updated [closed]

I am creating a VRNA__Policy__c record Successfully. But every time when I try to update this record its showing below validation Error but this Validation Rule is not showing in VRNA__Policy__c ...
user avatar
0 votes
0 answers
34 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', ...
user avatar
0 votes
0 answers
17 views

Record triggered asynchronous flow vs Maximum number of methods with the future annotation

I have a scenario related to a potential issue we are facing in an org. An autolaunched flow executes once and loops 51 times through a create record element which creates 1 single record in each ...
user avatar
  • 1
0 votes
1 answer
34 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 ...
user avatar
  • 1
0 votes
0 answers
16 views

Create OrderPaymentSummary to Test Class

I am working on an OMS and when it comes to testing a return, I have managed to perform all objects up to OrderItemSummary and ReturnOrder. But when creating the OrderPaymentSummary and ...
user avatar
0 votes
1 answer
21 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 <...
user avatar
  • 176
2 votes
1 answer
128 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 ...
user avatar
  • 100
0 votes
1 answer
53 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 (...
user avatar
0 votes
0 answers
15 views

Issue facing in create smart store record in Salesforce Mobile SDK Version : 9.2.1 [duplicate]

Issue facing in create smart store record in Salesforce Mobile SDK Version : 9.2.1 Platform : Android Target Android SDK Version : 31 Programming language : Kotlin Here I want to create one record (in ...
user avatar
0 votes
0 answers
65 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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
0 votes
0 answers
34 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 ...
user avatar
0 votes
1 answer
743 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?
user avatar
  • 157
1 vote
1 answer
777 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 ...
user avatar
0 votes
1 answer
858 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 ...
user avatar
0 votes
0 answers
34 views

Create new row in existing data extension

Based on another question related to how to update SFMC data extensions row by row, I'd like to understand how to first load a data extension in general and then create new rows within it. Based on ...
user avatar
0 votes
0 answers
59 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 ...
user avatar
-3 votes
1 answer
240 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<...
user avatar
  • 1
0 votes
1 answer
76 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 ...
user avatar
  • 2,068
1 vote
1 answer
78 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....
user avatar
  • 771
0 votes
2 answers
145 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 ...
user avatar
  • 6,561
1 vote
0 answers
61 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 ...
user avatar
  • 33
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
20 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-...
user avatar
0 votes
0 answers
88 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 ...
user avatar
  • 169
0 votes
1 answer
56 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 ...
user avatar
  • 169
0 votes
0 answers
117 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 ...
user avatar
0 votes
1 answer
89 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} ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
1 vote
1 answer
1k 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....
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 2,068
0 votes
1 answer
217 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 ...
user avatar
0 votes
1 answer
36 views

Is it possible to distinguish in a trigger if a create new record is started from a related list or from the object

I have a requirement to pre-fill some fields when a record is created from a related list. These requirements are different when created from the object itself. Is there a way that I can capture this ...
user avatar
  • 2,068
0 votes
1 answer
531 views

How to get the record Id when the Save button of aura component is clicked so that it can be used to redirect to the other component?

I've to create an aura component which will contain a form and when the data is saved by clicking SAVE button it should redirect us to another component. The issue i'm facing is how to get the record ...
user avatar
0 votes
1 answer
45 views

Create multiple custom permissions

I have a requirement to create multiple(around 100) custom permissions. Can this be done using data loader or workbench? In data loader when we select insert option I don't see custom permissions ...
user avatar
0 votes
0 answers
24 views

How to correctly implement the selection of an account in the picklist so that it is correctly recorded in the new contact?

I have a form to add a new contact and am having trouble recording if I fill in the "Account" field. If you do not fill it in, then the new contact is added to the database without any ...
user avatar
0 votes
1 answer
94 views

Create record from view in background

I currently have a lightning component from which I want to save a string into a record. In my javascript controller I create a record when a button is clicked. A dialog is shown to save the record ...
user avatar
  • 2,068
0 votes
1 answer
48 views

Can I set up a way where users allowed to create Opportunities only from Contacts?

My initial idea was to hide - New - button from the Opportunities recent list, its already hidden on the Account page layout, but I'm starting to doubt that's the right way, what approach should I use?...
user avatar
  • 29
0 votes
0 answers
90 views

Pass current loggedin user id in lookup field in lightning component

Eximanie Record field is a user lookup and i want to populate this lookup value as current logged in user, but it is showing still blank on lightning component. ({ doInit: function(component, ...
user avatar
  • 1,298
0 votes
1 answer
119 views

Error on standard new record create button on list view in Winter 21

You get following error in technical description. When creating a new record using standard New button on a given list view in Winter'21 orgs for specific record types only Uncaught (in promise) ...
user avatar
-1 votes
1 answer
424 views

how to create a salesforce object on a marketing cloud smart capture form submission [closed]

I have a landing page with a smart capture form on it. Upon the form submission, the smart capture simply sends the details into specific data Extention. Now, is it possible to create a 'Lead' object ...
user avatar
  • 5
1 vote
1 answer
61 views

Order of returned Ids when creating multiple records with the SOAP API

When I create records using the SOAP API, the Id of the created records are returned, and if multiple records are created in a single call, all the Ids are returned. I'm just wondering if there's any ...
user avatar
  • 125
0 votes
1 answer
39 views

Deny or allow the creation of a new record if in the parent object (records) - the field of the picklist type has the status "closed" or "active"

I have two objects: Training and Participant with a master-detail relationship (Training (master), Participant (detail)). When training is "canceled" (Status (Picklist) field selected ...
user avatar
1 vote
0 answers
615 views

LWC - what is the best way to create a new record from an existing one?

I have a need to create a new record from an existing one on a Lightning page, but selecting specific fields only, not all (it's about 50/50 of used/unused fields), and adding some new values not on ...
user avatar
  • 1,387
0 votes
2 answers
80 views

Can I create a different page layout just for the creation of an object?

We have way too many fields on the oppty object. I am trying to create a new page layout, that will be used only upon the creation of a new oppty. That will holda roughly 15-20 fields only that are ...
user avatar
  • 5,435
0 votes
1 answer
78 views

Trigger doesn't update event

with this trigger I can insert new events, but can't update them, if I update an Opportunity or a Task. trigger CreateEvent on Opportunity (after insert, before update) { List<Event> events = ...
user avatar
0 votes
2 answers
130 views

Create no more than one record of particular type per day

I've created a custom object for Leaves which allows the users under my org to apply for leaves. I've added three types of leaves such as Casual Leave, Sick Leave & Leave without Pay. I've used an ...
user avatar
1 vote
2 answers
2k views

How can I insert records from one sandbox to another sandbox?

I have sandbox shared for my team and I have personal sandbox. How can I insert records sandbox shared for my team to my personal sandbox? I have required objects and fields. I don't need to insert ...
user avatar
1 vote
0 answers
976 views

Flow Loop not processing the last record

I'm building a flow that takes the subscriptions listed on our contract record and creates a record in a custom object called Entitlements. Our contracts may have the same subscription listed more ...
user avatar
  • 23