• Signavio
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi, i implemented a batch job which makes a webservice call within the same salesforce instance, which then is supposed to send emails with a pds attachment, since you cannot send pdf attachments directly from a batch job. My webservice call looks like this: public static void callOut(List ids){ InvoiceAttachmentConnector.InvoiceAttachmentService ws = new InvoiceAttachmentConnector.InvoiceAttachmentService(); ws.SessionHeader = new InvoiceAttachmentConnector.SessionHeader_element(); ws.SessionHeader.sessionId = UserInfo.getSessionId(); ws.handleInvoicePdfAttachment(ids); } However in batch jobs UserInfo.getSessionId() returns null. How can i log in to get a SessionId? So far I found no solution for sf to sf. If u can help I would appreciate it! Thanks!
Hi, i implemented a batch job which makes a webservice call within the same salesforce instance, which then is supposed to send emails with a pds attachment, since you cannot send pdf attachments directly from a batch job. My webservice call looks like this: public static void callOut(List ids){ InvoiceAttachmentConnector.InvoiceAttachmentService ws = new InvoiceAttachmentConnector.InvoiceAttachmentService(); ws.SessionHeader = new InvoiceAttachmentConnector.SessionHeader_element(); ws.SessionHeader.sessionId = UserInfo.getSessionId(); ws.handleInvoicePdfAttachment(ids); } However in batch jobs UserInfo.getSessionId() returns null. How can i log in to get a SessionId? So far I found no solution for sf to sf. If u can help I would appreciate it! Thanks!

I am getting timeout error (600 secs) - limit reached when trying to save code to SFDC.

 

Has anyone else got this error? I can also confirm that the site is operational (checked via trust.salesforce.com) and not currently under maintenance