• LBDD
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi,

 

I try this code:

http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php

 

And when I execute, get a Salesforce.com Login, I put my login and when back to my computer (a localhost), get this error:

   https://login.salesforce.com/services/oauth2/token failed with status 0

 

Anyone can explain whats append?!!!

 

Best Regards,

LB

  • December 22, 2010
  • Like
  • 0

Hello,

 

On Contacts I have a option to send bulk emails (Mass Email Contacts), I want to have same to send SMS's.

 

When I select the "wizard" from Mass Email Contacts, have "Step 1 to 4", basicaly I need "Step 1" (Specify the recipients to include) and "Step 2" (Select an email template).

 

Salesforce have some component that allows perform these steps without having to develop by me?

 

 

Best Regards,

LB

  • October 21, 2010
  • Like
  • 0

Hello,

 

I have this code:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Title</title>
<script type="text/javascript" language="javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/13.0/connection.js" type="text/javascript"></script>
<script language="javascript">

function initPage() 
{
    window.setTimeout(PrepareSend, 200);
}

/* begin with 351 */
function Number351(numtmp){
  if ({!LEFT(numtmp,3)}!='351') return false; else return true;
}

/* verify 9 */
function Number9x(numtmp){
  if ({!LEFT(numtmp,1)}!='9') return false; else return true;
}

/* verify + sign */
function NumberPlus(numtmp){
  if ({!LEFT(numtmp,1)}!='+') return false; else return true;
}


function PrepareSend()
{
    try
    {
        if ({!Contact.MobilePhone} != '')
        {
            var thisMobile = {!Contact.MobilePhone};
            var thisDestination = '';  
            var thisOperator = '';            
            var thisMessage = 'Test from Salesforce';		
            var thisIs351 = Number351(thisMobile);
            var thisIs9x = Number9x(thisMobile);
            var thisIsPlus = NumberPlus(thisMobile);
	}            
      	window.setTimeout(reloadPage, 1000);
    }
    catch (error)
    {
        document.getElementById('_create_contact_').innerHTML = "Preparing Send - error: "+error; //.faultstring;
    }
}
</script>
</head>
</script>
</head>
<body onload="initPage();">
<div id='_create_contact_'>
<center>
&nbsp; &nbsp;<img src="/img/waiting_dots.gif" border="0" width=100 height=15>
</center>
</div>
</body>
</html>

 

I get error: "Error: The field numtmp not exist. Verify sintaxe."  [on funciton Number351(numtmp) ]

 

Before change to LEFT sintaxe, i used "if (numtmp.substr(0,3)!='351') { ... }", but get the ReferenceError, substr not exist!

 

Anyone can help or have a tip to resolve this?

 

Thanks a lot.

LB

 

 

 

 

  • October 19, 2010
  • Like
  • 0

Hi,

 

I try this code:

http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php

 

And when I execute, get a Salesforce.com Login, I put my login and when back to my computer (a localhost), get this error:

   https://login.salesforce.com/services/oauth2/token failed with status 0

 

Anyone can explain whats append?!!!

 

Best Regards,

LB

  • December 22, 2010
  • Like
  • 0

Hello,

 

On Contacts I have a option to send bulk emails (Mass Email Contacts), I want to have same to send SMS's.

 

When I select the "wizard" from Mass Email Contacts, have "Step 1 to 4", basicaly I need "Step 1" (Specify the recipients to include) and "Step 2" (Select an email template).

 

Salesforce have some component that allows perform these steps without having to develop by me?

 

 

Best Regards,

LB

  • October 21, 2010
  • Like
  • 0

Hello,

 

I have this code:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Title</title>
<script type="text/javascript" language="javascript" src="/js/functions.js"></script>
<script src="/soap/ajax/13.0/connection.js" type="text/javascript"></script>
<script language="javascript">

function initPage() 
{
    window.setTimeout(PrepareSend, 200);
}

/* begin with 351 */
function Number351(numtmp){
  if ({!LEFT(numtmp,3)}!='351') return false; else return true;
}

/* verify 9 */
function Number9x(numtmp){
  if ({!LEFT(numtmp,1)}!='9') return false; else return true;
}

/* verify + sign */
function NumberPlus(numtmp){
  if ({!LEFT(numtmp,1)}!='+') return false; else return true;
}


function PrepareSend()
{
    try
    {
        if ({!Contact.MobilePhone} != '')
        {
            var thisMobile = {!Contact.MobilePhone};
            var thisDestination = '';  
            var thisOperator = '';            
            var thisMessage = 'Test from Salesforce';		
            var thisIs351 = Number351(thisMobile);
            var thisIs9x = Number9x(thisMobile);
            var thisIsPlus = NumberPlus(thisMobile);
	}            
      	window.setTimeout(reloadPage, 1000);
    }
    catch (error)
    {
        document.getElementById('_create_contact_').innerHTML = "Preparing Send - error: "+error; //.faultstring;
    }
}
</script>
</head>
</script>
</head>
<body onload="initPage();">
<div id='_create_contact_'>
<center>
&nbsp; &nbsp;<img src="/img/waiting_dots.gif" border="0" width=100 height=15>
</center>
</div>
</body>
</html>

 

I get error: "Error: The field numtmp not exist. Verify sintaxe."  [on funciton Number351(numtmp) ]

 

Before change to LEFT sintaxe, i used "if (numtmp.substr(0,3)!='351') { ... }", but get the ReferenceError, substr not exist!

 

Anyone can help or have a tip to resolve this?

 

Thanks a lot.

LB

 

 

 

 

  • October 19, 2010
  • Like
  • 0