Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [event]

Use Event to manage calendar appointments.

1
vote
1answer
13 views

How to populate the next closest hour based on the current date in Salesforce apex

How to populate the next closest hour based on the current date.The fields im using are of datetime datatype. ex:If my current time is 8:15 am it should populate 9:00 am. I tried using time class,...
1
vote
1answer
23 views

EventRelation - Insert error. You can only add up to one what relation

I'm trying to insert an EventRelation record related to a custom object (Shared activities is enabled). Id idEvent = someEventId; Id idProductVItem = someObjectId; EventRelation evR = new ...
0
votes
0answers
27 views

Lightning:treegrid ontoggle action triggers onrowselection

<lightning:treeGrid aura:id="accountsTreeComponent" columns="{!v.gridColumns}" data="{!v.gridData}" keyField="accountId" ...
2
votes
1answer
34 views

event.detail is undefined in Lightning:recordEditForm submit event

I'm trying to get field values at Lightning:recordEditForm onSubmit() event.In the documentation example it shows below. my onSubmit event handler as below, I end up getting error, [event.detail ...
2
votes
0answers
38 views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
0
votes
0answers
17 views

Salesforce Outlook Event Calendar sync with attachment

Currently Salesforce does not support attachments sync from sf event meeting to outlook meeting. I am trying to address it with custom solution. While creating new event, I want to put the link to ...
0
votes
1answer
23 views

Storage Usage Discrepancy

I am seeing Events listed in Current Data Storage Usage, however using dev console, I see nothing in the events table. Is there somewhere I should be looking to find these events? Any info will be ...
1
vote
1answer
24 views

Unable to see Attendee list on event object in lightning experience in Spring'19

As per the below link of salesforce release notes, we can now see the attendee list on the event object in the lightning experience without enabling setting up the lightning sync. Salesforce Release ...
0
votes
1answer
34 views

How to fetch the latest events on lead records without using query?

I have a Map where key is event id and value is the event, Map. These events are created on Lead object. And this Map may contain more than one event created on Lead records. My requirement is to ...
1
vote
1answer
32 views

How to get details of user activity for CRUD operation using Eventlogs

I want to track activity of user using eventlogs object, it has many event types where we can track activity like Apex Execution, Trigger Execution, Page View details. But i am unable to find event ...
0
votes
0answers
8 views

Firing an application event of package A from package B

I recently came up against a problem related to event communication between two managed packages. In my scenario, I am able to fire an application event from package A and handle it in package B. My ...
0
votes
1answer
17 views

Prevent new activity being logged against inactive accounts

Our accounts have inactive checkbox. When this is checked users should not be able to create new tasks/events I tried validation rules like: (on both task and events) AND( ISNEW(), $Profile.Name <...
1
vote
1answer
252 views

Bell notifications via apex

My customer wants to send bell notifications whenever you add an Attendant to an Event. Is there a way to create custom bell notifications via apex code? If not, is it possible to achieve this ...
0
votes
1answer
39 views

how to query for the participants in an event in salesforce?

Events are being created in salesforce from some external application. I need to get the participants from them in a trigger. I am looping over the newly inserted Events and then trying to query, but ...
0
votes
1answer
48 views

Salesforce Platform Events and JMS

Could anyone please explain me what is the connection between JMS ans Salesforce platform event? Is both are doing the same job?
0
votes
0answers
38 views

Add custom event object to calendar, and sync with Outlook via Lightning Sync

I created a custom "Event" type of object, where our Sales Reps log client visits or calls. I offered the chance for our Sales Reps, to include another user on the event (like an engineer, who helped ...
0
votes
1answer
42 views

Check if Event already exists in Salesforce via Flow

I have a form/flow that has three fields Start date/Time, End Date/Time and location. What I want is when the user selects the values for those 3 fields in the form and proceeds, I do a record lookup ...
0
votes
0answers
79 views

Lightning Component quickaction onclose event

Is there a way to get the close event of a lightning component that is used as a quick action? I have a component with force:LightningQuickActionWithoutHeader and I use $A.get("e.force:...
0
votes
1answer
85 views

Repeat checkbox not working on Global Actions quick action layout for event

When on the calendar tab or event object directly checking the repeat checkbox expands another menu allowing the user to choose the repeat interval. However, when creating an event from an associated ...
0
votes
0answers
17 views

Using EvenRelation with Event to assign multiple owners - Test class issues

I have a batch job that counts a bunch of different objects owned/assigned to our Sales Users. One criteria for counting Events is that I need to count Events Owned/Assigned to the user AND Events ...
0
votes
1answer
47 views

Get Inbound Change Set Details

I would like to get details about an inbound change set. I already know that I can get its name and Request ID through Event Monitor and only its name through Setup Audit Trail, but I would like to ...
0
votes
0answers
12 views

Can we customize the email notifications to be sent to Event invitees when we click “save & send update” button?

Can we stop standard email notifications & Can we customize the email notifications to be sent to Event invitees when we click "save & send update" button?
3
votes
1answer
170 views

How to clear the filename and value of apex:inputFile

I have and apex:inputFile tag where a user can input a filename to upload on a visualforce page. I have a javascript function which checks and alerts if a filesize is too large. After the Alert the ...
1
vote
1answer
128 views

Accept Event and Decline Event buttons not present in Lightning Experience

I have Lightning Sync configured and when I open an Event as an invitee and then I want to either accept or decline the invitation, the buttons to do this are not visible. When I switch to Classic, ...
0
votes
1answer
69 views

After update trigger fires twice, first with no updated info, second with info

I'm writing a trigger that chops up a long-text field on an event activity record and puts it into the appropriate fields on the related contact's record. The problem is, the code seems to be firing ...
0
votes
1answer
353 views

Sending Meeting invite in lightning

i have worked in Salesforce Classic for sending meeting invite thru EVENT calendar. But in lightning, I can only save meeting invite. how can i send same meeting invite to contacts on email in ...
1
vote
2answers
49 views

Event with Multiple Leads and Contacts on it

I'm looking for a way to represent something like a seminar where they are many attendees that are clients. Some of these clients will be represented by Contact records and some Lead records. I'd ...
0
votes
1answer
17 views

How to breakdown function in lightning component

I have created codes for the controller js of my lightning component which uses a handler that takes the parameter value from an event: checkChange: function(component, event, handler) { var ...
2
votes
1answer
140 views

EventWhoIds is not writeable in apex class but working on JSForce

I'm having a problem with the Event object. When I insert EventWhoIds using JSForce, it allows me to insert. However, when I insert it through an Apex class, it won't let me and gives this error: ...
0
votes
1answer
154 views

Facing issue in Event while query with timezone conversion

I am trying to display today’s event ina vfpage like Salesforce today event component does, but my query is not resulting in the correct list based on user time zone when putting where clause to today....
0
votes
1answer
63 views

Event Owner Details SOQL

I am trying to run a SOQL query in workbench to pull details related to the Event (standard object) owner. I've been able to user Owner.Name within the query but haven't been able to successfully ...
1
vote
1answer
26 views

SysAdmin Cannot delete EventRelation in Unit Test?

I have a unit test that creates an Event (in the future) and some EventRelations (for Contacts, with isInvitee=True), and then later deletes 1 of the EventRelations, via runAs(SysAdmin). Pretty sure ...
0
votes
0answers
28 views

Identify Events created by Lightning for Gmail

I am implementing Lightning Sync for my org (via Gmail), and one concern I have is the number of events that will be added into the system. I am looking into writing a process to clean up past events ...
0
votes
1answer
152 views

Component event not firing or not being catched

I spent the whole day trying to figure out why this event is not getting fired, i tried both component and application events but noting worked although the code is pretty simple. here is my code : ...
0
votes
1answer
34 views

Constructor not defined error on Event trigger

I'm fairly new to development but I'm currently trying to move some triggers into classes to follow the one trigger per object design pattern. I'm getting the following error in the trigger: ...
0
votes
2answers
15 views

Event on adding a related object

So this below is the standard modal for adding a team member: I'm almost sure that when you click "Save" an event is fired and you can catch that event and handle it. The point is I can't find the ...
0
votes
1answer
47 views

What is the purpose/example for force:navigateToReactNativeApp event?

I'm wondering the idea behind this as I don't understand which kind of situation you will use this. More info here.
0
votes
1answer
71 views

Can I save and fire lightning event later?

I am trying to fire the same lightning event from one component more than once. Is it possible to save the event in a variable and use it to fire? I saw this question. It did not help.
0
votes
1answer
36 views

Edit button for standard object overwritten not working

I have overwritten my standard edit button for object and what I'm trying to achieve is, based on the result from an apex controller function redirect to standard edit form (with force:editRecord) or ...
0
votes
1answer
341 views

EventRelation and Event Object Salesforce

I have a requirement to add multiple Assignees to an Event. To do so after creating an Event record, I am also creating EventRelation record right after. Here's the steps in the flow: Step 1: Create ...
4
votes
1answer
695 views

Are lightning event synchronous or asynchronous?

Are lightning event synchronous or asynchronous? component1: <aura:component> <aura:handler name="event1" event="zced:TypeDoesNotMatter" action="{!c.event1Function}"/&...
0
votes
1answer
94 views

how to get the list of contacts that are associated for an events

hi all i have created an event with multiple contacts and then when i was trying to get the list contacts that are associated with an event in SOQL the result only first contact is returning i.e ...
0
votes
1answer
134 views

What event fire when you attach a file/attachment on the record page?

I've created a lightning component that shows a table of all contentversions related to the record detail page you are on. However, if upload/add a new file using the "Files" related list, it doesn't ...
0
votes
1answer
46 views

Inline Edit for Start and End DateTime for Event object?

How to update duration field when we update Start time and Time of event using inline edit? Note:- I am editing only Start date and End date using inline edit. my requirement is like I want the start ...
1
vote
1answer
677 views

Not able to create lookup relationship of same object on Activity Object

I have already created activity custom field of type Lookup(user) on Activity object. I want to create one more custom field of type Lookup(user) on Activity object, but I am getting validation error ...
0
votes
0answers
27 views

Customize display of event calendar

I am trying to customize the calendar display. When an event is created, the event currently displays on the calendar like the following: subject (location) : Account Name if the event whatId is ...
0
votes
0answers
39 views

Unable to change WHOID of Event with Shared Activities are enabled

I'm getting the below error, whenever i'm trying to update the WHOID of the Event. Update failed. First exception on row 0 with id 00U3600000MA8x4EAD; first error: INVALID_CROSS_REFERENCE_KEY, ...
0
votes
1answer
27 views

Prevent users from creating event of particular record type from opportunity object

I want to pop up error whenever a permission set user tries to create an event of B type from an opportunity? Event has two record types A,B But the user who has permission set assigned Should not ...
1
vote
0answers
35 views

Tell a component to update its' content when a related record is added on the same record page

I have a Lightning Component in a Record Page on Order object, and whenever I add a product (new OrderItem is created) in the order, I'd like to somehow notify the component to update its' content. ...
0
votes
1answer
49 views

Unable to create Auto EventRelation record via trigger

I am trying to create an EventRelation record on insert of an Event. Basically I am trying to add WhoID of Event into invitees automatically. Am I missing anything. I am not getting any error also. ...