• Code+1
  • NEWBIE
  • 115 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 43
    Replies
Hi Team,
 I have a custom field on task object.
 Whenever, there is a change in Case custom field, i would like to update the custom field in task.
 Please let me know, to achieve it through trigger ..
Hi All,

 I have a requirement, wherein the user will click on a hyperlink.
 Then on clicking of the hyperlink, it should open a shared folder.
 Datatype of the hyperlink is URL and the data will be like C:\Users

 Please let me know a.s.a.p

Thanks ..
Hi
Pls provide a basic example to start with soap api.
actually I need to execute it on my terminal & see the result.
I am not familiar with web services but yes I will brush up ​​​on that.
I request the people to be elaborate while replying.
a) In what type of scenario we use soap api
b) advantages and disadvantages of soap api compared to other api's.
c) what errors occur when we use soap api and how to resolve


sonali verma
​Hi all
I have 2 departments. hr_dept and finance_dept. User_A from hr_dept wants to share records to user_B   of finance dept.
How to do this?

I know in profiles for hr_dept object should have VIEW all permission.​ so user_A belonging to hr_dept object can share records.
Pls correct my understanding if wrong and if I am missing anything concrete pls do let me know

sonali verma​
Hello All,

 I have a requirement to update the mobile number of Salesforce User.
 I created a user 'XXXX' with the mobile number 12345
 Then, when i try to edit / Change the mobile number of user 'XXXX' with 9999. It is not getting recognized and updated.
 Please guide if there is something needs to be done...

Thanks !

 
Hello All,
 I have a requirement to upload an attachment through Visual Force Page.
 Attachment should reside in Custom Object.
 
 On creation of record, user will fill some details and upload attachment from local machine.
 Details and Attachment should be captured as record in custom object.
 Please let me know for any sample code.

Thanks !
HI ,

I need to delete the post in the community , could anyone help me.

this is the link

https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BVjIIAW

Thanks in advance
Hello,

When i try to test email sending for Emauil templates, i never receive any email,
I laos include a record id in the email.

How can i test
Hello All,
This is an email service class.. 
 Please find my test class below. Kindly help me in writing the test class for this.
 
 Email Service Class

Thank You !!
Hello All,

 On Checkbox field check, I need to display a Date Field and File Upload section.
 When the checkbox is unchecked, i need to remove the Date Field and File Upload Section..

 I have written the below code, which works perfectly when the checkbox is checked.
 When I uncheck the checkbos, it throws the error - "Visualforce Error Help for this Page
apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute."

VF Page
<apex:page standardController="Associate__c" extensions="AttachmentUploadController">
<apex:form >

<apex:pageBlock id="tBlock">  
   <apex:outputLabel value="Active" />  
  
   <apex:inputField value="{!Associate__c.Active__c}">  
      <apex:actionSupport event="onchange" rerender="tBlock"/>  
   </apex:inputField>  

   <br></br>
 Date of Joining <apex:inputField value="{!Associate__c.DOJ__c}" rendered="{!(Associate__c.Active__c == true)}"/>  
     <br></br>
     
     <apex:actionregion >
 <apex:outputLabel value="File" for="file"/>
 <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file" rendered="{!(Associate__c.Active__c == true)}"/>  
 </apex:actionregion>
     
</apex:pageBlock>  

Apex Class

public with sharing class AttachmentUploadController {

    public AttachmentUploadController(ApexPages.StandardController controller) {

    }


public Attachment attachment {
  get {
      if (attachment == null)
        attachment = new Attachment();
      return attachment;
    }
  set;
  }

  public PageReference upload() {

    attachment.OwnerId = UserInfo.getUserId();
//    attachment.ParentId = '00190000015ZVLm'; // the record the file is attached to
    attachment.ParentId = ApexPages.currentPage().getParameters().get('id'); 
    attachment.IsPrivate = true;

    try {
      insert attachment;
    } catch (DMLException e) {
      ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,'Error uploading attachment'));
      return null;
    } finally {
      attachment = new Attachment(); 
    }

    ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO,'Attachment uploaded successfully'));
    return null;
  }

}


Please help.. 
Thanks!

Hi,

 

Can anyone tell me where to find some quality documention on parsing XML with apex. I have no experience in parsing XML, so some detailed walkthrough's would be very helpful.

 

Thanks!