• mits430
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi there. 

 

I'd like to enable to public our org's Ideas site.

So I tried following settings, but it doesn't works (it appear "Authorization Required").

 

1. [Setup] - [Develop] - [Sites]

 

  I added Home Page, Ideas Pages, Search Pages, Lookup Page to "Site Standard Pages".

 

 

2. [Setup] - [Create] - [Apps]

 

  I ensured that the "Ideas tab" are available for profile used by my Sites site.

 

 

Probably, it seems that the guest profile can't access Ideas data.

 

Would you tell me any solution for this and what I doing wrong?

 

 

I'd like to compare Object type using "Event.What.type" in Trigger method.
Then I wrote some code. but, it didn't work rightly.

 

It rather seems "Event.What" was null.
How should I do that it work correctly. or please tell me other way.

 

Here is the code.

trigger TestTrigger on Event (after insert) {

for (Event rec : Trigger.new) {
// "rec.What" is null...
if (rec.What.type == "ownCustonObject__c") {
}
}
// ... some code

}

 

Would someone please reply this.

 

 

Mitsutaka.

Hi there. 

 

I'd like to enable to public our org's Ideas site.

So I tried following settings, but it doesn't works (it appear "Authorization Required").

 

1. [Setup] - [Develop] - [Sites]

 

  I added Home Page, Ideas Pages, Search Pages, Lookup Page to "Site Standard Pages".

 

 

2. [Setup] - [Create] - [Apps]

 

  I ensured that the "Ideas tab" are available for profile used by my Sites site.

 

 

Probably, it seems that the guest profile can't access Ideas data.

 

Would you tell me any solution for this and what I doing wrong?

 

 

I'd like to compare Object type using "Event.What.type" in Trigger method.
Then I wrote some code. but, it didn't work rightly.

 

It rather seems "Event.What" was null.
How should I do that it work correctly. or please tell me other way.

 

Here is the code.

trigger TestTrigger on Event (after insert) {

for (Event rec : Trigger.new) {
// "rec.What" is null...
if (rec.What.type == "ownCustonObject__c") {
}
}
// ... some code

}

 

Would someone please reply this.

 

 

Mitsutaka.