Guest User

Untitled

a guest
Feb 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. insert caseDet;
  2. attDocument.OwnerId = UserInfo.getUserId();
  3. attDocument.ParentId = caseDet.id; // the record the file is attached to
  4. attDocument.IsPrivate = false;
  5. insert attDocument;
  6.  
  7. <div class="form-group form-group-sm">
  8. <apex:outputLabel value="Attach Document" for="frmAttDocument" styleClass="control-label"></apex:outputLabel>
  9. <apex:inputFile id="frmAttDocument" value="{!AttDocument.Body}" filename="{!AttDocument.name}" styleClass="btn btn-file btn-primary" />
  10. <div class="help-block with-errors"></div>
  11. </div>
Add Comment
Please, Sign In to add comment