• BPeddle
  • NEWBIE
  • 25 Points
  • Member since 2009

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

Is there any wildcard or way to setup so it doesn't do an exact match.

 

I want to do a redirect anytime it hits a relative url like /detail/foo ... however if it has a querystring it ignores it  so this does nothing 

/detail/foo?id=xxxxxxxxxxxxxxxx

 

Tried a variety of different formats but no luck.  Not sure it is possible.

 

Thanks

  • September 14, 2011
  • Like
  • 0

I have a trigger which works when I am logged in a regular user.  If I am using the site guest user the same trigger executes but doesn't do everything.

 

In the trigger on Before Insert I create a dummy account and then try to assign to the new contact being created.  I also try to run it after insert and it just seems to skip the changing of account without error.

 

The account is created in either case

 

This works when logged in and not with Guest Account:

 

 

    if (Trigger.isBefore) {
            // get the business account record type (which is candidate) //
            RecordType NotPersonAccountRecordType = [select Id from RecordType where SobjectType = 'Account' and Name = 'Candidate'];
                        
            // create new account for one to one record to the contact, type will be the business account from above
            Account newAccount = new Account();
            newAccount.Name = 'TempAccount';
            newAccount.OwnerId = Trigger.new[0].OwnerId;
            newAccount.RecordTypeId = NotPersonAccountRecordType.Id;
            insert newAccount;    
            
            //iterate through Trigger.new and change the Contact to New Account Just Created
            for(Contact C : Trigger.new){
                c.AccountId = newAccount.Id; 
            }  
    }
 

This also work using after insert

Wondering if this is just a limitation of the guest user account and being able to reassign it.
  • September 12, 2011
  • Like
  • 0

I suspect I am over looking something simple.  I am trying to insert a Link into a Feed Post and can't seem to do it.  Example:

 

 

FeedPost post = new FeedPost();
post.Body = 'Hey  now! <a href="http://google.com">Google</a>';
post.parentid = UserInfo.getUserId();
insert post;

 

FeedPost post = new FeedPost();

post.Body = 'Hey  now! <a href="http://google.com">Google</a>';

post.parentid = UserInfo.getUserId();

insert post;

 

Is this possible?

Is there integration with Twitter out of the box or does this currently require custom development?

If it possible to perform XSL transformation on XML inside of APEX?  I have looked around and hopefully I am just missing something.

 

Thanks

Brian

On some of our pages error messages are inline and appear right below an input box.  On other pages it seems to ignore that and just appear at the top.

 

Trying to figure out what causes the inconsistency on this?

  • September 25, 2009
  • Like
  • 0

I figured out how to remove the doctype so I could use

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

however Salesforce adds inwhich is not valid markup. HTTP-EQUIV and CONTENT need to be lowercase.

 

<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
 

 

 Is there anyway to override this stuff in sites?  Not being allowed to control doctypes etc is probalematic when it comes to design.

 
  

  • September 23, 2009
  • Like
  • 0

Looking at this diagram http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging.htm

 

I have an outbound message setup, the external web service receives it no issues and returns the success message.  Looking at the above link it appears I can also send a sessions id and at a later date, say maybe a day later have the external service send a message back to Salesforce with some update maybe.

 

Trying to figure out how this later return works.

 

Do they just hit the regular API to update what they need to and the session id will authenticate them without the api username and password .. or ... do I setup a webservice to listen in Salesforce for a later response? 

 

I have been looking for docs on this Optional Call back stuff but no seeing it.

 

Thanks

Brian

I suspect I am over looking something simple.  I am trying to insert a Link into a Feed Post and can't seem to do it.  Example:

 

 

FeedPost post = new FeedPost();
post.Body = 'Hey  now! <a href="http://google.com">Google</a>';
post.parentid = UserInfo.getUserId();
insert post;

 

FeedPost post = new FeedPost();

post.Body = 'Hey  now! <a href="http://google.com">Google</a>';

post.parentid = UserInfo.getUserId();

insert post;

 

Is this possible?

Hi,

 

Can somebody confirm this: if I create a new Custom Setting and set its type to Hierarchy then I should be able to modify what's in there after it gets wrapped inside a Managed Package and released? Can this be done with List types too?

 

Thanks.

  • November 04, 2009
  • Like
  • 0

Looking at this diagram http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging.htm

 

I have an outbound message setup, the external web service receives it no issues and returns the success message.  Looking at the above link it appears I can also send a sessions id and at a later date, say maybe a day later have the external service send a message back to Salesforce with some update maybe.

 

Trying to figure out how this later return works.

 

Do they just hit the regular API to update what they need to and the session id will authenticate them without the api username and password .. or ... do I setup a webservice to listen in Salesforce for a later response? 

 

I have been looking for docs on this Optional Call back stuff but no seeing it.

 

Thanks

Brian