Questions tagged [event]

Use Event to manage calendar appointments.

Filter by
Sorted by
Tagged with
18
votes
2answers
2k views

Find Parent Event of Child Event

Problem Statement Show a list of events on visualforce page, and give ability to respond as accept/reject/maybe. Scenario: 3 users are participating in an event. Event is created by a user named "...
13
votes
3answers
1k views

How to send an email in response to a triggered event?

We need to send emails in response to a triggered event. We have created two data extension, one for client data and another to event data. These data extensions are filled with API procedures. We ...
10
votes
1answer
601 views

Implement Domain Event Pattern in Apex - can and should it be done?

In Domain Driven Design a single pattern is drawing a lot of attention to itself - Domain Events and Event Queues. (slide via http://de.slideshare.net/andysal/never-mind-the-bollocks-heres-the-domain-...
9
votes
2answers
3k views

CometD Issues when subscribing to Platform Events

I am using the notification Console Component described in this trailhead: Subscribe to Platform Events Trailhead I am able to get it working, and the majority of the time I have no issues. However, ...
9
votes
3answers
3k views

Event record type selection is bypassed from Activities list view

I have two Event record types specified. When I create an Event from the Home tab via the New Event button or when I create an Event directly on a record (e.g., an Opportunity) via the New Event ...
8
votes
2answers
6k views

Lightning Components: What is the easiest way to have an onclick event on a HTML-tag?

In a Lightning Component I have <div style="border: green solid 3px;" onclick="console.log(123);"> <br/> <br/> <br/> </div> As far as I see, the old-...
8
votes
1answer
8k views

Treat click event on <lightning:icon> as a click on <ui:input>

I have a lightning:icon next to a ui:inputDate like so. When clicking into the input area, the calendar datepicker pops up, as expected. Is it possible to treat a click event on the calendar icon as ...
8
votes
2answers
2k views

What is the difference between {!URLFOR($Action.Activity.NewTask)} and {!URLFOR($Action.Task.NewTask)}?

When you try to create a custom button for a Task, if you choose "$Action" in the "Select field type", you have two options to define that button: $Action.Activity.NewTask - This will take you to a ...
8
votes
1answer
326 views

Recreating the Event Notification Email

Is there a way to determine what the aid parameter is for a given event relation record? We would like to add Invitee's to events and send a custom email notification to them allowing for the ...
7
votes
1answer
6k views

Firing Events in Journey Builder

I'm struggling with the Journey Builder documentation on firing events. I believe it's wrong, or perhaps it's right and I'm wrong. As I understand it, an Interaction begins by firing an Event. When ...
7
votes
3answers
2k views

Lightning components - Prevent event bubbling from ui:checkbox to parent div

I'm facing issue with click event bubbling in Lightning. I have div and inside of it few components including lightning checkbox and <a href> tag: Component: <div aura:id="container" class=...
7
votes
1answer
2k views

Why are phone calls “Tasks” and not “Events”?

Is there a reason that the generic Salesforce model makes phone calls "Tasks" and not "Events"? It seems like calls have start times and end times just like Events. What advantage does not having ...
7
votes
1answer
695 views

POST interaction/v1/eventDefinitions creates an Event Definition but I cannot see the Event on a Journey

I am attempting to post a new API Event that can be added to a Journey as an entry source. I am able to make this call via Rest and see the new event when I open Entry Sources under Journey Builder....
6
votes
4answers
9k 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 ...
6
votes
3answers
1k views

Analytics: how to use Activity (Task / Event) in a Dataset?

I'm setting up Analytics / Salesforce Wave and trying to report on Events. The use case here is these Event records are used as a mechanism for logging billable hours. Unfortunately, I can't see any ...
6
votes
1answer
1k views

Accomplishing 'Long Polling' to monitor events - REST or STREAMING API?

My use case is to be notified of any new documents uploaded to the account - { I could potentially use the StreamingApi but my entire infrastructure is based on REST, while the StreamingApi uses ...
6
votes
1answer
4k views

Where is the documentation for aura:handler?

I can find some reference to it in the documentation, but I find it odd that I cannot find specific documentation on aura:handler. Does it exist and I just cannot find it or does it just not exist?
6
votes
1answer
1k views

Workflow on Last Activity Date

is it possible to set a workflow that would create a task or email alert if there was no activity e.g. for the last 180 days...? By activity I mean only logging a task or event not editing the account ...
5
votes
1answer
1k 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}"/&...
5
votes
1answer
4k views

Is it possible for nested subcomponents to receive events from parent components in Lightning?

Lets assume we have the following hierarchy of Lightning Components <c:master> <c:sibling1 aura:id="sibling1" /> </c:master> PART I Is it possible for a child component (here ...
5
votes
2answers
2k views

Lightning Components: Unable to handle an event

I have a component which consists of another child component which is added dynamically: <aura:component> <ltng:require styles="/resource/SLDS0122/assets/styles/salesforce-lightning-...
5
votes
1answer
5k views

Trigger to get fields from Object linked with the 'Related To' field in an Event

I have created a custom app called 'Projects'. The app is linked with a Master-Detail field called Account which looks up an Account name and then links the Project to it. Then I create an Event ...
5
votes
1answer
2k views

Access Check Failed! on ui:inputText component event after Apex call

I've got a really basic component which call an Apex method when we press the Enter key. However, since Spring'16, I've got the following warning message: WARNING: Access Check Failed! Component....
5
votes
1answer
357 views

Lightning: How to ignore valueChange event handler from parent component if sub component 'overrides' it?

There are parent and sub components. Each component has : <aura:handler name="change" value="{!v.var}" action="{!c.onVarChange}"/> Each component defines onVarChange in its controller ...
5
votes
1answer
3k views

How To Add Event to a Public Calendar using Apex?

I need to automate adding Event records to a Public Calendar. Is it possible to do so using Apex? I tried using the OwnerId field, but no luck.
5
votes
1answer
153 views

Is it possible to create a lightning event series in Apex?

It says that IsRecurrence2 and its related fields (Recurrence2PatternText, Recurrence2PatternVersion) are read only, but have to get set on initial event creation. When attempting to set them on a new ...
5
votes
1answer
1k views

How to create a timed fade out message using force:showToast

So this is pretty simple to create. I have the code: showMessage : function(){ var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ mode : "dismissable", ...
5
votes
1answer
501 views

Is it possible to listen to events fired by Lightning Experience?

As I understand the general idea behind aura/lightning is to be able to have components which can interact with each other. However, Salesforce's documentation seems to be lacking any information ...
5
votes
1answer
609 views

Email notifications for Event invitees using the API?

Can someone help me understand whether it is possible via the REST or SOAP API (version 29) to trigger the email notifications that get sent when adding an invitee (e.g., contact, lead) to the ...
5
votes
1answer
569 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....
5
votes
0answers
371 views

Is it possible to pass parameter between napili template built with lightning component

I am working on napili community template pages built with lightning components. There is a requirement to pass value from a lightning component in page 1 to a lightning component in page 2.. I ...
4
votes
3answers
413 views

Why is this trigger to prevent event deletion not executing correctly?

I have written this trigger which is supposed to prevent a user (unless they are a system administrator, marketing director or telesales) deleting an event of type 'Telemarketing Appointment'. But ...
4
votes
2answers
5k views

How to add a VF page to Event standard pagelauout

Is it is possible to add a Vf page to Event standard page layout. If it is possible please tell me, how can i do it?
4
votes
1answer
9k views

Process Builder - Add Minutes,Hours to Event End Date

I want to make the Event End Date as NOW()+60 Mins in process builder while creating a new Event record. But It is adding 60 DAYS even though Event End date is date/time field. How do I add minutes ...
4
votes
1answer
5k views

Apex Trigger Creating Event on Account- Won't show in Open Activities

I've created an Apex trigger on a custom object that creates an event for an account. The trigger works, and I have the data, but I can't get it to show up under Accounts=> Choose Account=> Open ...
4
votes
2answers
16k views

Lightning component add an event redirecting to a record

I have a lightning component, and I want that when I click a div, it redirect me to an object record. I guess I have to use an event but I don't know how it work exactly ? Do you have an example of ...
4
votes
1answer
772 views

Do Lightning Components need to register/declare standard app events?

My Lightning component: <aura:component controller="MyController" implements="flexipage:availableForAllPageTypes,force:hasRecordId" access="global"> <aura:attribute name="recordId" type="...
4
votes
2answers
10k views

onchange event listener for ui:inputSelect not working

I am trying to implement a picklist using the Aura component <ui:inputSelect> with a change event listner. But I see that the change event listener (JavaScript function) is not getting ...
4
votes
3answers
2k views

Return custom event.message using Javascript remoting?

Short version: Can I return my own messages in the javascript remote event.message object? Long version: I use a javascript remote call to perform an ajax search. This is the code (pretty much just ...
4
votes
1answer
836 views

how to call NodeJS from apex using Evergreen function

Salesforce has recently announced the Evergreen serverless functions. Information about the Evergreen can be found: https://developer.salesforce.com/blogs/2019/11/introducing-salesforce-evergreen....
4
votes
2answers
665 views

associating event with lead(Activity history)…?

I am inserting events and inserting multiple invitees(Lead/Contacts) to event using EventRelation. EventRelation er = new EventRelation(EventId = '00UD0000005zijH', RelationId = '003D000000Q8adV'); ...
4
votes
1answer
127 views

Lightning Components: Is it possible that a component fires an Application Event and handle it by itself?

Can Components subscribe and handle app-events which have been fired by themselves? <aura:handler name="refresh" event="c:elfLC_recordRefresh" action="{!c.appEvent}"/> <aura:registerEvent ...
4
votes
0answers
639 views

Is there a way or workaround to relate Tasks to parent-Tasks or Tasks to Events?

I know this is an old limitation and we've worked around it by creating simply a plain text field holding the parent activity Id together with custom components (visualforce or lightning, both work) ...
4
votes
1answer
1k views

Unable to edit Public Calendar Event

One of the user is not able to edit some of the public calendar events. Here is the error message when the user is trying to edit the event. Insufficient Privileges You do not have the level ...
3
votes
2answers
2k views

How to send multiple parameters to Event in LWC

I have a below event in LWC const selectedEvent = new CustomEvent('custEvent', { detail: this.someData; }); this.dispatchEvent(selectedEvent ); I also want to pass this.anotherData; Could ...
3
votes
1answer
434 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 ...
3
votes
1answer
8k views

System.FinalException: Record is read-only. How to update fields in event object?

i wrote a function inside event trigger handler that should receive custom times for a meeting, a custom time zone of the customer, and a timezone for the user - and calculate the time of the meeting ...
3
votes
1answer
310 views

Event End Datetime does not get set

For a certain business use case, I need to set the End datetime of an Event to 25 seconds from its Start datetime. Through the below apex code, I have noticed that the system does not actually set the ...
3
votes
2answers
201 views

Why do I get a null value when I try to use the ActivityDate to set a DateTime value in Process Builder

Pulling my hair out on this one... I need a process to update events marked as "All-Day" to regular events which start at 8AM and end at 5PM. So I need to set the ActivityDateTime, StartDateTime and ...
3
votes
1answer
340 views

Adding Invitees to event programmatically

I have a Google Event with a list of invitees. I have a python code which syncs this event with Salesforce by creating a Event sObject. I queried for the emails in the invitees list of my Google event ...

1
2 3 4 5
9