Questions tagged [create-records]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
3answers
3k 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 ...
0
votes
2answers
40 views

Creating a new record out of a newly created user record

I have a custom object called Employee__c. Once I create a new User in Salesforce, a new and corresponding Employee__c record has to be automatically created in the system using the information from ...
5
votes
1answer
926 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 ...
1
vote
1answer
250 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 ...
0
votes
1answer
298 views

Creating an external object using OData 4.0 adapter

I've got a ASP.NET WebAPI project that must integrate with a Salesforce instance, using the OData 4.0 adapter for Salesforce. Searching and viewing my external objects is working fine, but I am unable ...
3
votes
2answers
8k 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 ...
1
vote
1answer
403 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 ...
0
votes
1answer
2k views

can a validation rule be set up to fire when a record is created

1) When I create a new contact on an account and a field has a certain value, a checkbox on the new contact is automatically checked. If that is checked I need to force the user to fill another field....
0
votes
1answer
576 views

Updating child records using bulk API

Can we create the child record of a parent object using the Bulk API. I am trying to use the bulk API and I want to create all the child record of a parent record. Is it possible through using bulk ...
0
votes
1answer
66 views

How to develop a Visualforce page with controls that could be switched between edit and view modes?

I am new to salesforce and moved from .Net. I am given a simple exercise in VF page development.. The page will look like the image attached. It will have 2 frames, the right one will have controls ...
0
votes
1answer
2k views

How to verify Trigger using test class which creates a new record in other object ? (how to get 100% code covarage)

For learning purpose, I was creating a trigger with following functionality : There is a candidate object with a checkbox "Active" , Trigger functionality is to create a new record in "Review" object ...
2
votes
1answer
99 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 ...
1
vote
1answer
537 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
5k 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="...
0
votes
1answer
490 views

How to save a record using visualforce page?

I have a site using visualforce dbvc.force.com/MRSurvey when I try to save a record with this, it does not allow it and tells me authorization is required, even though the site is public. Can someone ...
0
votes
1answer
27 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 ...
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 ...
1
vote
1answer
248 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]; ...
2
votes
0answers
54 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
745 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 ...
0
votes
1answer
257 views

PopulateRelatedProductName2: execution of BeforeInsert caused by: System.StringException: Invalid id: ParentNameShouldBeHere: External entry point

I am trying to populate the Name field on a New Child Record, using the Parent Record Name. There will be a Record type that a user will choose from. The desired effect is that I want the Parent ...
0
votes
1answer
5k views

Field Missing / Field Not Showing Process Builder Create a Record

I am trying to create a record via Process Builder, and set the value for a custom field of type text, but the custom field doesn't show up in the list of fields that I can set. How can I get this ...
2
votes
1answer
246 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 ...
1
vote
3answers
3k 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 ...
3
votes
2answers
910 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 ...
0
votes
1answer
32 views

Periodically generating CustomObject entries

we have created a CustomObject MonthlyItem as child of Contract (Master/Detail Relationship). Now we want to generate new MonthlyItems at the end of each month for the next respective month. ...
0
votes
1answer
445 views

Unable to assign 2 leading zeros in field creation

Hi friends i stuck in a place i want to assign two zeros when ever any record is created. My requirement is i have a number field.whenever i created any record i want to assign default with 2 zero's....
0
votes
1answer
2k views

How to automatically create a new record in another object [closed]

Whenever a new Account record is created, automatically a new contact record should be created.Need to use the instance of contact object and you can populate the required fields and ignore the rest....
0
votes
0answers
127 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
2answers
299 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
1answer
509 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
2answers
463 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
1answer
1k 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 ...
0
votes
1answer
515 views

Before Trigger Create Record - Error on Original Records

I am using a staging object in Salesforce to receive data from a middleware platform via SOAP API and I wish to then write a before (or after if need be) trigger which does the following: Splits the ...
4
votes
1answer
2k 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> ...
0
votes
1answer
29 views

Product2 record creation

I have a weird scenario. I am creating new product2 records in batch and setting the isactive checkbox to true. After insertion when i debug, it says it is set to true. But when i go to that record, ...
0
votes
1answer
49 views

Can I auto generate an objects required name field without Enterprise edition workflows?

I'm using the default SF opportunity object and want to auto-generate the value for the name field. Everything I've read about this says "yes its simple when you use workflows and create an on ...
0
votes
1answer
330 views

How to insert same value to different fields of different objects in flow

How to insert same value to different fields of different objects. I am working in Visual workflow where I am getting a set of information on a screen. Now I need to insert these records into 3 ...
-1
votes
1answer
142 views

Custom Segment: People who joined the list in the past 30 Days or have opened an email in the past 90 days

I would like to create a query that allows me to build a data extension for a segment that has either entered our list in the past 30 days OR opened an email in the past 90 days. I have the Query for ...
0
votes
1answer
54 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 ...
3
votes
1answer
257 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: ...
9
votes
3answers
10k 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 ...
0
votes
0answers
47 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
2answers
664 views

Process Builder Create Record Action is missing few Fields to update

I have a simple requirement to create Tasks based on 6 check box fields in a Custom Object( One Task per field is value is set to True). Since Process Builder gives the option to Create Records ...
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 ...
1
vote
1answer
872 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
659 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 ...
0
votes
1answer
43 views

I can't view a new record on it's tab, it was created on a salesforce trigger

I insert a record with the following trigger and debug information. I can't see it on it's tab, but I can get access to it if I take the Bitacora ID and put it directly into my browser. How can I ...
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 ...
1
vote
1answer
2k 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 ...