Questions tagged [create-records]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
4answers
13k views

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool?

How to retrieve or deploy Custom Metadata Records by ANT Migration Tool? Is this possible? I guess it should be possible if this is available for packages and changesets but can't find a way ...
8
votes
1answer
2k views

Modify “New” Object Layout through Lookup

When using a Lookup field, you can create a new object utilizing the "New" button. My first question, what is this functionality called officially by Salesforce? Can you turn it off? Secondly, when ...
5
votes
1answer
1k views

Standard object page “not supported on mobile device” in Salesforce1

In a bit of a bind here. I have just created a new, totally standard custom object in my Spring'14 DE, and added three fields to it with no problem (lookup to contact, number, text). I assigned it a ...
5
votes
1answer
1k views

Is there an event to handle Successful creation of record when event force:createRecord is used

I am creating custom object records using standard salesforce record creation feature by firing the event force:createRecord from my custom component. After saving the record, Page navigates to ...
4
votes
1answer
3k views

Insert sample records using Apex

I would like to insert a bunch of sample account records (50 or so), without using the data loader. I have written code, but I do not know how to proceed. Where can I run it? List<string> ...
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
295 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
9k views

Redirect to the lightning new record creation popup

In lightning experience clicking on the "New" button for an object opens a new pop-up to fill the data and create that object Is there a way to redirect to/open that new record creation popup by ...
3
votes
2answers
2k views

lightning:recordEditForm not working - create children on master-detail relatinship

<aura:component implements="force:appHostable"> <aura:attribute name="recordId" type="String" /> <lightning:card title="Create Reservation"> <lightning:recordEditForm ...
3
votes
1answer
453 views

Why at the Account tab dropdown menu the “+ Account” option is missing? (applies to ANY other tab, too)

Update: this issue applies to ANY SObject tab (Custom + Standard), too. On all Orgs but one that I know at the Account tab there is a first option "+ New Account". It looks always like this and this ...
3
votes
1answer
286 views

Creating calendar entries from events

I have 4 custom objects for managing course schedules and am trying to find out how to write either a flow or query that will propagate the details to calendar rows for enrollees. This is what I have: ...
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
1answer
1k views

Trigger After Insert Error : Record is read-only

still learning the apex ropes I've created a trigger which should create a contact after a custom object (School_bookings__c) record is created. My code is as follows: trigger CreateSchoolContact on ...
2
votes
1answer
3k views

Create new records in Salesforce1 app

So I'm playing around with the Salesforce1 app on an iPad. Maybe I'm missing something, but I can't seem to create new records, either at the top level (like Account) or a child record (like Contact)....
2
votes
1answer
137 views

Not able to create a Campaign Member using Process Builder

i am creating record 'Campaign member' and want show in related list under Lead Object, here i have criteria like CreatedDate = NOW() AND Description = abc based on above mention criteria Process ...
2
votes
1answer
256 views

Alternative to URL hacking for record creation buttons?

I often use the quick and dirty URL hack for prepopulating fields when creating records. I want to use a more 'secure' option. Does anyone have any recommendations on how I can accomplish this using ...
2
votes
1answer
83 views

Is there any way to tie an error in a API SOAP create response back to the original record when attempting to create more than 1 record at a time?

I'm creating new records in Salesforce by using the SOAP API create method. I'm attempting to create several records in one create call. Some of them are successfully created, but others fail due to ...
2
votes
0answers
71 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
1answer
2k views

Attempting to Insert CreatedDate - Field is not writeable: Account.CreatedDate

I am trying to insert a list of records with a CreatedDate of my choosing. I read the documentation about what settings are needed to grant access to insert values for the audit fields. I have ...
1
vote
2answers
71 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 ...
1
vote
1answer
216 views

LWC NavigationMixin.Navigate after creating new record not getting id

In my LWC I create a new record, and after this want to navigate to the new record to allow the user to enter some required info. What I'm finding though, is although my navigate statement is after ...
1
vote
3answers
4k views

Copy field values from one object to another

I have Obj1 and Obj2 both having 20 fields of same API Names. For while creating Obj2 records I want to copy all those field values to Obj1. Is there any shortcut to do the coding instead of writing ...
1
vote
2answers
948 views

Custom Object to Hold Log Information

I need some help at least with the Logic to be able to do this. Basically i need to create a Record on a custom Object everytime an Apex Class is runned on success or error, that Record should show ...
1
vote
1answer
2k views

Callback after the record was created using e.force:createRecord

Are there a way to add callback after the user created a record and clicked the Save button? I am using a custom tab and custom components and open the Create a record modal window using e.force:...
1
vote
1answer
136 views

How to insert a record via lightning compenent?

I am new in lightning and trying my hands on it,but get stuck where i simply want to insert a record after creating the page of app. here is my code :- Component` <aura:component implements = "...
1
vote
2answers
1k views

Insert record into Data Extension from a Journey

I would like to keept track of my sent out emails by writing away the data such as "Sent Date", "Theme", "Reason of contacting" into a "Contact History" Data Extension. This, as we only have the SF ...
1
vote
2answers
2k views

How do you access the user's choice for RecordType when using a lightning component to override the New button on a custom object?

I have a custom object with two different record types assigned to the standard user profile. We are using a Lightning Component to override the standard functionality of the New button, and this ...
1
vote
1answer
494 views

Update a parent record and create a child record within same transaction using SOAP API

My question is similar to this question, just that I am looking for SOAP JAVA client API based solution. Suppose, I have a Parent object Account and it's child object Contact. I have a web ...
1
vote
1answer
273 views

Apex method not creating record

My apex class is as follows: global class CreateDailyRSLI implements Schedulable{ List<Wildlife__c> LiveRhinosList = [SELECT id, Number_of_Sightings_Today__c FROM Wildlife__c]; ...
1
vote
3answers
4k views

Add multiple rows in Lightning component

I am new to lightning. I have one requirement and I am not sure how to achieve it. any help is appreciated. Requirement is : we have to build custom lightning component, where in user will key in few ...
1
vote
1answer
703 views

Creating a Salesforce community user using API

We are starting a project that will enable us to sell services to individuals over the force.com platform but from within a application that is in-house. I am writing the specification for the ...
1
vote
1answer
3k views

How to create new KnowledgeArticle record from API

I am looking into building a web app using either the SOAP or REST API that would allow our clients team to generate new knowledgebase articles (service cloud) to be submitted to salesforce via the ...
1
vote
1answer
21 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 ...
1
vote
1answer
155 views

LWC create record - getting 'undefined' for record.id in 'then'

I'm successfully creating a new record from my LWC, but I can't seem to access the content of the new record in the 'then' part of the code. I would like to display the Name of new record (which is an ...
1
vote
1answer
653 views

How can I link two records in a flow?

I'm creating a flow that creates two records on two separate objects. The objects are linked in a master-details relationship. But I cannot figure out how to create the relationship between the two ...
1
vote
2answers
774 views

How to Get Newly Created Id After Insert Called from an Event

I can't seem to get the Id of my newly created Contact record. When clicking the "Save Contact" button, the contact is saved, but I can't figure out how to reference the new Id. I would like to use it ...
1
vote
1answer
664 views

What is the correct way to create a Recurring tasks in Visualforce?

Our requirement is to create a set of recurring tasks(activities) programatically. It's supposed to be a simple recurring set of tasks up to X number of days. My code segment as below. Integer idx = ...
1
vote
2answers
6k views

How to refresh Visualforce page on save of record?

I want to refresh an entire page after a record is saved using the save command button. I can't see why it is not refreshing as default. Here is the code of the page: <apex:sectionHeader title="...
1
vote
1answer
1k views

Create child record using flow

I have a parent object of Project and a child object of Project Notes. I want to create a Project Note using a screen element inside a flow. I will have a button on the Project record to initiate ...
1
vote
2answers
451 views

Find Latest CreatedDate from a list of sObjects

I have a sObject List AttachList Boolean retVal = false; DateTime AttachCreatedDate = ''; ID attachId = ''; for(AttachDetails__c attachDetail : AttachList) { ...
1
vote
2answers
476 views

Creating records using Remote objects

Can we create multiple records at a time using remote object create() call? If yes what is the syntax? I tried passing a list of objects to create call but it didn't work.
1
vote
0answers
60 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
1answer
116 views

Before insert is not taking effect

I'm trying to update an Email field on an sObject, we have lots of relationships, so using workflow rule is out of the question. Basically I need to send and email alert to the account owner of a ...
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
609 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 ...
1
vote
1answer
388 views

Why is the Salesforce security scan saying I don't check isCreateable()?

I am baffled by the Salesforce automated security scan. I just ran it and it says: This query looks for sObject Create operations that are performed without checking for isCreatable(). This may be a ...