Last active
August 29, 2015 13:56
-
-
Save tyoshikawa1106/9109206 to your computer and use it in GitHub Desktop.
ContentVersionテストデータ作成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ContentVersion contentVersion = new ContentVersion( | |
Title = 'TEST' | |
,Description = 'TEST' | |
,PathOnClient = 'myString' | |
,VersionData = Blob.valueof('myString') | |
,FirstPublishLocationId = parentId | |
); | |
insert contentVersion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ParentId取得 | |
public ContentWorkspace getContentWorkspace() { | |
SELECT | |
Id | |
FROM | |
ContentWorkspace | |
WHERE | |
Name = 'workSpaceName' | |
LIMIT 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment