• タン ビン チャン
  • NEWBIE
  • -1 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
I am using my developer account for preparing for DEV401 certification test.
I remember I can login as another user with the training account but I don't see the option here.
I create a user and would like to login as that user to try some sharing rules.

How can I do that?

HI there,

 

I've a custom object with a number of custom fields and a requirement to make one of those fields a read only field that equals the name of the user who created the record.

 

I first tried a Formula with CreatedById.Name but that's not accepted.

 

I've also tried to create a trigger on a text field but that caused all sorts of errors and exceptions:

 

trigger updateOfficer on Application__c (before insert) {

  for(Application__c a: Trigger.new){

    a.Officer__c = a.CreatedBy.Name;

  }

}

 

I'm hoping it's possible to use a Formula but if that's not going to work then I'll happily use a trigger but might need to some pointers... ;-)

 

Cheers,

 

Dom

Hi ,

        Can ypu please send the sample code for http post in apex

Hi community,

 

I need to connect to an URL from Salesforce, I mean, from a VF page. The URL returns an XML and I need to process it.

 

The URL is http://www.ctt.pt/pdcp/xml_pdcp?incodpos=1000234

 

where incodpos parameter is a Portuguese postal code.

 

I don't know the best way to proceed. Can anyone help me out with this, please?

 

Thanks in advance.

 

Regards.