• charan@apps
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies

Can anyone help me how to get country code form mobile number.

 

 

for example:

 

Mobile number on contact is 911234567890

 

The country code here as 91.

 

I need a code that can remove all the last 10 digits of a mobile number and

returns me remaining digits in the number i.e Country code..

 

 

 

Thanks in Advance.

Can anyone help me how to get country code form mobile number.

 

 

for example:

 

Mobile number on contact is 911234567890

 

The country code here as 91.

 

I need a code that can remove all the last 10 digits of a mobile number and

returns me remaining digits in the number i.e Country code..

 

 

 

Thanks in Advance.

Guys,

 

 

I cannot get contact field from task object.

 

I am trying to get the phone number of contact from task.

 

 

i am using this code:

 

Task obj= new Task();

 

obj=[select id, subject, who.name from task];

 

 

I can get name  from contact to task, but I cannot get mobile phone form contact to task.

 

 

Please suggest me, how to retrieve mobilephone field on contact object to task.

 

Hi

 

We want to send an sms from Salesforce to Mobile through REST API

 

we used this code

 

Http http = new Http(); HttpRequest req = new HttpRequest();

req.setEndpoint('https://Account ID:Auth token@api.twilio.com/2010-04-01/Accounts');

req.setMethod('GET');

String username = 'xxxxxxxxxxxxxxxxxx';

String password = 'yyyyyyyyyyyyyyyyyyy';

Blob headerValue = Blob.valueOf(username + ':' + password);

String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(headerValue);

req.setHeader('Authorization', authorizationHeader);

req.setBody('hai'); HTTPResponse res = http.send(req);

System.debug('STATUS:'+res.getStatus());

System.debug('STATUS_CODE:'+res.getStatusCode());

System.debug('----Responce----'+res.getBody());

 

 

but it gives status 401 notfound error how can we do Plz help me

 

how can we overcome this, Please post your reply at earliest.

 

Team,

 

Did any one come across this link.

http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API

 

 

1)When I click to Run On Server, it is redirecting to http://localhost:8081 page.

I have configures https on my Tomcat Server.

 

I want to OFF http sever. How can I make it?

 

2)When i try to execute this, Html file executes and Salesforce link as provided in the HTMl page appears, but when I click on that link it is not redirecting me to Salesforce login page.

 

I am getting 404 error.

 

 

Kindly help me out with your suggestions.

 

 

 

Regards,

Charan 

  • April 14, 2011
  • Like
  • 0

Hi,

 

I'm trying to rotate text within Visualforce page that is being rendered as PDF. I've managed to rotate the text in the HTML  version of the page by applying the two browser specific CSS styles that are supported by Firefox and IE below:

 

 

-webkit-transform: rotate(90deg); -moz-transform: rotate(90deg);	

 

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);

 

But, when I add the renderAs="PDF" attribute to the page and, the text is not rotated. Has anyone ever tried this? Does anyone know of a way to get it to work?

 

  • May 13, 2010
  • Like
  • 0