• rickarnett
  • NEWBIE
  • 15 Points
  • Member since 2013

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

 

Hi I am getting thebelow error message when am delpoy using ant recently both the org are enabled social settings.

 

 

SocialPost-Social Post Layout.layout(SocialPost-Social Post Layout):Parent entity failed to deploy

 

Unable figure out it.Any suggestion helpful.

 

Thanks

  • January 03, 2013
  • Like
  • 0

Hi All,

 

I have custom Submit For Approval, Approve and Reject Buttons on the record detail page.

 

I have created a Approval Process .I want to call this Approval Process to execute upon clicking custom 'Submit for Approval' Button.This I am able to acheive by following code.

 

Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
req1.setObjectId(recordid);

 

Now when user clicks on  custom 'Approve' button the approval request record created above should be approved.

 

If Can anyone share a sample of code to acheive this it will be helpful.

 

Thanks,

Srilakshmi B

Using the SingleEmailMessage class I am trying to set the template Id, what Id, and target Id. I was disappointed when I tried to get the html body and found the body to be null. Is there a way to get an email template body after a merge with an sObject? Here is what I thought would work...

 

 

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setTargetObjectId(contactId);
mail.setTemplateId(templateId);
mail.setWhatId(caseId);
		
System.debug('*********************');
System.debug(mail.getHtmlBody()); // getHtmlBody returns null :(

 

 

  • November 08, 2010
  • Like
  • 0