People who code: we want your input. Take the Survey

Questions tagged [create-records]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
169 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
0answers
105 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
834 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
7k 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
638 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
32 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
299 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
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 ...
0
votes
1answer
402 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 ...
2
votes
1answer
265 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 ...
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
630 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
2answers
972 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
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 ...
1
vote
2answers
592 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
482 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
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 ...
0
votes
1answer
644 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 ...
0
votes
1answer
30 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
53 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 ...
3
votes
1answer
311 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: ...
0
votes
1answer
373 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
147 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
65 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 ...
0
votes
1answer
44 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 ...
1
vote
1answer
761 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 ...
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 ...
2
votes
1answer
86 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 ...
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 ...
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)....

1 2
3