Questions tagged [create-records]

The tag has no usage guidance.

32 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
1k views

lightning:inputField as lookup missing “New Record” option

Is it just me or is the lightning:inputField component missing the "New Record" option when it's rendered as a lookup? Right now I have to type a value in the lookup field, hit enter, and wait for ...
4
votes
1answer
297 views

Hiding Standard fields from the Record creation window - Napili Template

Seems straight forward: Field Level Security to hide the fields, but this seems like, we cannot make disable the Read permission(as it always defaults to checked): Created By, Last Modified By, Record'...
3
votes
2answers
1k views

How to create more than one temporary record with lightning components

Dear fellow Salesforce experts, I am building a lightning component where I am using a form with fields in order to create multiple records. I am already able to create multiple opportunity records ...
2
votes
0answers
72 views

Can Flow Designer set Audit Fields on insert?

We are leveraging Process Builder and Flow to assist in a data migration. In the past we've only relied on Process Builder for data migrations and we've been able to define audit fields like ...
1
vote
0answers
62 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 ...
1
vote
0answers
32 views

Use Lightning Web Component to Create Lead based on Record Type

Trying to figure out how to pass the recordType into a "CreateRecord" method in a LightningWebComponent. Currently, I'm hard coding the id and passing it with the rest of the values, but that is ...
1
vote
0answers
2k views

Trying to create a case record from Lightning Component Input form

I am creating an input form using Lightning component. Based on the data entered by the user in the form, a case should be created in Salesforce. Unfortunately, when I hit the submit button, nothing ...
1
vote
2answers
2k views

save two records in two objects with a single save button with lightning components

I have two objects: question and answer, in one form. the first 3 fields belong to the question object. dynamic form belongs to the response object. I created two actions in the client-side ...
1
vote
0answers
480 views

Save returnURL for standard save button on creating record using force:createrecord

The requirement is to redirect to home page on saving a new To Do record . I have a lightning component with custom button added to Home page that onclick I am creating a new record using force:...
1
vote
1answer
611 views

Default Record Type when creating record from related list

I have two custom objects in a master detail relationship. Credit Applications are the parent, and Credit Decisions are the child. There are multiple record types and page layouts of each object for ...
1
vote
1answer
922 views

How to automatically select a new record's picklist values based on the autocompletev2's form selecting a custom setting record?

I am using the autocompletev2 search box from blogforce9 to allow users to type a request and have the autocomplete show the closest options. Because autocompletev2 doesn't work with picklists, I had ...
0
votes
0answers
13 views

Dynamically set fields values in force.recordCreate using the getPopulatedFieldsAsMap method

I'm working on a button that clones a record and would like to be able to dynamically populate field values into the force.createRecord form. This was the only way i've found that will keep page ...
0
votes
0answers
109 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 ...
0
votes
1answer
34 views

Can i add LC button in form?

I've create custom button in Contact , it's goal is to create custom object record I want to add in the form a custom button near Save / cancel which will open another popup .. Form is that ...
0
votes
0answers
110 views

Open sofrce createRecord in aura in popup modal instead of subtab in console

I am trying to open "Standard Task" create page in console but its opening as a subtab. I need to open it as a modal popup on same lightning recordpage. Please help. var createRecordEvent = $A.get('...
0
votes
0answers
46 views

Get record type Id from record type Name/DeveloperName in formula

Is it somehow possible to derive record type id from name in formula? I'm trying to create New button (List Button type) by specifying its url: /lightning/o/MyCustomObject__c/new?recordTypeId=...
0
votes
0answers
52 views

How to open standard create form of salesforce lightning in a new sub tab

I am firing an event e.force:createRecord to open a standard create form in Salesforce lightning but it opens in a new tab rather than a new sub tab. Is there a way to open it in new subtab?
0
votes
0answers
22 views

Force Create Record and Edit Record different behavior from overlay

Lightning development question - I am calling e.force:createRecord from a custom overlay - It automatically closes the custom overlay dialog and then gives me the record creation overlay Same ...
0
votes
0answers
35 views

Lightning Flow Create Record

Can I use a lightning component in a lightning flow to decorate text and update it the same way in notes(create records) as it is in the lightning component. I just want to orient the text in proper ...
0
votes
0answers
772 views

Create Record in LWC

createRecord : function (component, event, helper) { var createRecordEvent = $A.get("e.force:createRecord"); createRecordEvent.setParams({ "entityApiName": "Contact" }); ...
0
votes
1answer
27 views

Flow to Create a record and relate records to it

I'm working on a flow that'll ask the user for values (text, and picklist values) and create a record and relate existing records to it. The picklist is a record set of existing records that I need ...
0
votes
0answers
26 views

Connected App with Custom Endpoint

I'm not sure how to ask this question. We have a custom endpoint that handles the creation of leads from external partners. We recently added a partner and they are using a connected app. I didn't ...
0
votes
0answers
166 views

Lightning Web Components - track user (insert visit record) after login

We use lightning communities. I am working on building a new LWC component, where I can place it in the page footer. The goal of the component is simple: once the user logs in, visits a page in the ...
0
votes
0answers
49 views

Is it possible to reference values on child object records in Process Builder?

On the Case there is a custom junction object that looks up to the Account called Support_Team__c. This allows for the association of multiple Support Team members to a case. On this junction object, ...
0
votes
1answer
579 views

Call API FireEvents: multiple records for data extension

we are calling to this method: https://www.exacttargetapis.com/interaction/v1/events In body, raw text is this: { "ContactKey": "XXX", "EventDefinitionKey": "APIEvent-XXX", "...
0
votes
1answer
365 views

lightning:recordEditForm, mark as missing a field that I'm passing

I have an Issue with this component. When every Try to submit a new OpportunityLineItem The component sends the following error messages. An error occurred while trying to update the record. Please ...
0
votes
0answers
247 views

Restrict Record Create to Custom Button Only

I would like to restrict the way my users can create a custom object record. Specifically, this object record is a child of a different object and should never be created without a reference to the ...
0
votes
1answer
30 views

Auto-populate a field during auto-generation of a record (with Assemble)

My understanding is that, thanks to the installed package of Assemble, when a user registers for an Event, an Attendee record is auto-generated. In my production environment, every Event also has a ...
0
votes
0answers
134 views

Adding a record via Javascript

I have the following: I have a table element populated by <apex:repeat>, which works fine. However I have some Javascript that appends a new blank row to the end of the table and while I have ...
0
votes
1answer
60 views

Why can I not add a “Description” when creating a new Lead from Code?

I made a small Java Project to connect to Salesforce and get Leads and Create some new. Got into a problem of creating a new Lead with the "description" property even if i saw the property exists in ...
0
votes
0answers
48 views

Create & Retrieve Nested Records with iOS SDK

How can I create and retrieve nested records with the iOS SDK? Is this even possible? I have 2 objects with master-detail relationship and I'd like to be able to create and retrieve them in one ...
0
votes
0answers
29 views

Records not being formed upon clicking of button from VF Page

for(CountrywiseAggregration__c cWA :[Select Country__c,Year__c , cWA.PDPAllocationafterFXQ1__c from CountrywiseAggregration__c ...