Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
0answers
15 views

Visual Flow errors when creating more than 100 records

I have created a flow that creates an event, tables, and seats all related to each other. If it needs to create more than 100 the flow will error. Could I get some help to fix this please? I need to ...
0
votes
2answers
39 views

Cannot read property 'WhoId' of null when using lightning data service with task

I am actually using force:recordData to get info from a task and then I want to create an event from it. So I created a lightning component to be used in a lightning action. The component code is as ...
0
votes
0answers
18 views

Email-to-Case generalization

I'm writing a code that creates objects from Strings like this: Object_API_Name.Field_API_Name:value for example: Contact.Email:foo@bar.com I'd like to use this in email-to-case, so the String is ...
0
votes
1answer
55 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
1answer
31 views

Tell a force:lightningQuickAction what object I would like to work with

I want to create a custom lightning component which would allow me to create a record of a specific object. I decided to use quick action for this. I googled the documentation over here and found the ...
0
votes
1answer
137 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
57 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 = "...
-2
votes
1answer
196 views

Prepopulate lookup field in e.force:createRecord

I am trying to complete Lightning Framework specialist superbadge in trailhead and under challenge 2, I came across the following If a Boat Type is selected, the new Boat record defaults to the ...
0
votes
2answers
317 views

Lightning Data Service - empty error message

Today I'm struggling with something I really do not understand. I'm trying to make simple lightning component for creating new record of custom sObject. Problem appears on the save method. Result ...
1
vote
2answers
209 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 ...
0
votes
2answers
32 views

How do I give a custom button the functionality to Create a New Record (on a related list)

I created a custom button "Add" and put in on the related list. But I need some help figuring out how to give it the same functionality of "New" when clicked
0
votes
1answer
44 views

insertion of a date field from vf page

I have a requirement to insert a date field for opportunity on vf page.For the creation of record i used vf remoting.But when i am sending opportunity closed date from page to controller and trying to ...
0
votes
2answers
260 views

Not able to update due date field in task

I'm having a process builder which creates a task whenever the stage is "Prospect". Now all is fine except due date field update. I'm setting "TODAY() + 7" in "Due Date Only" field in process builder. ...
3
votes
2answers
1k 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 ...
0
votes
1answer
44 views

Create new SF opportunity from within an iFrame

I currently have an iFrame which is loaded into SF using syntax similar to below. <apex:component> <apex:iframe src="SomeURL" scrolling="true" height="600" width="1000"/> </apex:...
0
votes
0answers
294 views

Create Child Record with Dynamic Record Type Options based on Parent

Not sure the best way to phrase this. I would like a button on a custom object that creates a child record (same object). It would also be able to pull some fields from the parent record. I would ...
0
votes
0answers
76 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 ...
3
votes
0answers
455 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 ...
-2
votes
1answer
99 views

New button to create auto-populated quote record

I was wondering what the best approach would be to add a button on an opportunity page to generate a new quote record that has some data fields auto-populated with data from the parent opportunity. ...
0
votes
0answers
24 views

Issue while creating child record with two required filtered self lookup relationship with same object for two different record types?

I have existing implementation surrounding Account object where we have two record types lets say "A" and "B". "B" type records are already related to "A" type record through the standard 'Parent ...
1
vote
2answers
144 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 ...
0
votes
2answers
290 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 ...
-2
votes
1answer
44 views

Prefill fields with trigger not working

I have a custom object with 4 required fields for which I made a visualforce page to create a new record. I would like to fill 2 of the required fields with a before trigger and the other 2 trough the ...
1
vote
0answers
289 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:...
0
votes
1answer
628 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 ...
4
votes
1answer
125 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'...
0
votes
1answer
187 views

Flow: Auto Create 12 Month Child Records From Parent Employee Record Using Flow

Using Process Builder to call the flow on record create. I have a Contractor object. When a new Contractor is created, I need to auto create 12 (one per month) Time Sheet object records (regardless ...
0
votes
2answers
69 views

Error after creating a record in apex class

I get this error after clicking a button: The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an ...
0
votes
2answers
93 views

How to create a business account with the REST API

I can create a person account using the REST API, but I can't seem to find any documentation on how to create a business account. I imaging that the post items you send need to include something extra ...
1
vote
3answers
1k 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
39 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
696 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
113 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
131 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
3k 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
268 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
530 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
0answers
68 views

Mass create child records from the parrent record with button

We have 2 objects with the lookup relationship. Object A – Parent Object B – Child Our goal is to mass create child records from the parent record by pressing the button. New records should be ...
0
votes
1answer
267 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
48 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
0answers
838 views

Adding multiple rows/records in lightning component

I have to add multiple records on click of plus(+) button and on click of minus (-) button i need to delete the rows. On click of save all the added records has to be saved. My requirement is same as ...
0
votes
1answer
751 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
75 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
289 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
2k 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
395 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
21 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
771 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
193 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
31 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 ...