Skip to main content
added 44 characters in body
Source Link

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record isshould be created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is thethat eventRelation record is created at first with an insert id being returned without any errors or exception of any kind but later when the EventRelation is queried, the record is gone.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is created at first with an insert id being returned but later when the EventRelation is queried, the record is gone.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record should be created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is that eventRelation record is created at first with an insert id being returned without any errors or exception of any kind but later when the EventRelation is queried, the record is gone.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

added 16 characters in body
Source Link

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is not created without any errorat first with an insert id being returned but later when the EventRelation is queried, the record is gone.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is not created without any error.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is created at first with an insert id being returned but later when the EventRelation is queried, the record is gone.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

added 16 characters in body
Source Link

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is nevernot created without any error.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is never created.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

I want to add "User" invitees to an event through eventRelation. I am doing this through an additional Event.OwnerId field in the custom layout. When the user saves the record for event, an eventRelation record is created.

This is the code I have written so far...

                    EventRelation eventR = new EventRelation();
                    eventR.EventId = evnt.Id;
                    eventR.RelationId = evt.OwnerId;
                    eventR.isWhat = false;
                    eventR.isParent = false;
                    eventR.IsInvitee = True;
                    eventR.Status = 'New';
                    insert eventR;

In the code above i am getting the eventId once the event record has been inserted. After that i am creating the eventRelation record with the additional OwnerId field value placed in the layout.

The problem is the eventRelation record is not created without any error.

I also tried to set the GroupEventType to 1 (required for multiple invitees) but this field was not writable.

Note: Activity sharing feature is enabled

Any help will be appreciated.

Source Link
Loading