Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. String xmlData; // Your XML data goes here
  2. SDOC__SDJob__c sdjob = new SDOC__SDJob__c(
  3. SDOC__ObjAPIName__c='Opportunity', // Object API Name
  4. SDOC__OID__c='006000000018HK6', // Object ID
  5. SDOC__Doclist__c='a15000000012GQ2', // Template ID
  6. SDOC__Start__c=true // Generate document upon insertion of S-Docs Job
  7. );
  8. SDBatch.writeRecordDataXML(sdjob, xmlData); // Write XML Data to S-Docs Job record
  9. insert sdjob;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement