• Moemonty
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hello all,

 

I'm trying to create a controller that will expose information for only the current user of the customer portal.

 

My SOQL looks like this.

 

 StuInfo = [select FirstName, LastName, Contact_Status__c,

id from Contact WHERE id =:usrId]; 

 

I'm looking to place the id of the User that is currently logged into the Customer portal, so that customer only has access to their own records.

 

How do I go about doing this, with the Site method 'createPortalUser'?

 

 

Thanks in advance,

 

Moises Montenegro 

 

 

Hello all,

 

I was wondering how I would go about updating a related object's field from a Trigger I created in Task.

 

This is what I'm trying to do.

 

I'm trying to update a Custom field in the Contact Object from a Task Trigger.

 

This is what I have so far.

 

 

trigger interviewComplete on Task(after update, before insert, before update) { 

 

    for(Task t: Trigger.new) 

    {

    

      if (t.subject == 'Interview' && t.status =='Completed' ) 

      { 

        t.subject.addError('Contact Record should be updated to Interview Complete');

           

        //t.Contact__r.contact_status__c = 'Interview Complete';       

        

 

      }

    }  

 

 

How do I change the custom field contact status, in the object Contact, from the Task Apex Trigger?

 

Thanks all,

Moises Montenegro 

 

 

Hello all,

 

I was wondering how I would go about updating a related object's field from a Trigger I created in Task.

 

This is what I'm trying to do.

 

I'm trying to update a Custom field in the Contact Object from a Task Trigger.

 

This is what I have so far.

 

 

trigger interviewComplete on Task(after update, before insert, before update) { 

 

    for(Task t: Trigger.new) 

    {

    

      if (t.subject == 'Interview' && t.status =='Completed' ) 

      { 

        t.subject.addError('Contact Record should be updated to Interview Complete');

           

        //t.Contact__r.contact_status__c = 'Interview Complete';       

        

 

      }

    }  

 

 

How do I change the custom field contact status, in the object Contact, from the Task Apex Trigger?

 

Thanks all,

Moises Montenegro