• AudiJames
  • NEWBIE
  • 0 Points
  • Member since 2009

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

Hi! This is a tricky formula that I'm trying to create.

 

If the user is an ADMINISTRATOR ROLE of SalesForce, allow the record to be deleted when they click on the custom delete button.

 

ELSE

 

give a popup stating that the user doesn't have the permissions to delete the Opp.

 

Can someone help? 

Hi! This is a tricky formula that I'm trying to create.

 

If the user is an ADMINISTRATOR ROLE of SalesForce, allow the record to be deleted when they click on the custom delete button.

 

ELSE

 

give a popup stating that the user doesn't have the permissions to delete the Opp.

 

Can someone help? 

I was able to create a nice call button for intializing skype calls to contacts. Add a field called 'Skype_Name' to the contacts object. Then create a formula field with the following;

IF(OR(ISNULL({!Skype_Name__c}),LEN({!Skype_Name__c}) < 1) , "" , HYPERLINK("callto://"& {!Skype_Name__c} ,IMAGE("http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_70x23.png", "Skype Call")))

If the person's skype name field is blank nothing appears. Otherwise it shows a small skype icon with a link that opens skype and starts calling your contact. Works in IE and Firefox.

Here's the question I need help with. Skype lists other methods rather than using callto:\\ . See http://share.skype.com/tools_for_sharing/skype_buttons/advanced_skype_buttons/

So according to that page I should be able to replace callto:\\ with skype: in the formula above. But that does not work. I get #ERROR where the image should be. After much trial and error I found that the Hyperlink formula will not accept skype: within the URL. (I also tried skype:// as a variation to no avail) I'd like to be able to add additional buttons to initiate chats and file transfers as described in Skype's page.

Unfortunately it seems to be an issue with the Hyperlink function not the syntax I'm using. The image formula help even illustrates an example similar to what I'm doing using Yahoo's IM.

HYPERLINK("ymsgr:sendIM?" & {!Yahoo_Name__c}, IMAGE("http://opi.yahoo.com/online?u=" & {!Yahoo_Name__c} & "&m;=g&t;=0", "Yahoo"))

That ymsgr: tag works fine but not skype:. Anyone have any ideas? It would seem odd if Salesforce didn't allow that function to use the skype tab since Skype provided an app for the exchange (which I couldn't get to work btw. One issue at a time though.).

Also as a gift, here's another great skype formula. Skype is beta testing a presence awareness server. This formula will create an image field that shows a contact's skype status.

IF(OR(ISNULL({!Skype_Name__c}),LEN({!Skype_Name__c}) < 1) , "n/a" , HYPERLINK("callto://"& {!Skype_Name__c} ,IMAGE("http://mystatus.skype.com/"& {!Skype_Name__c} & "/smallclassic"
, "Skype Call")))

Right now it only shows an image that says 'I'm not telling'. I assume when the service goes live this will work perfectly. See skype's website for more info on tweaking this. http://share.skype.com/sites/devzone/2006/01/skypeweb_beta_is_here.html