fetching standard text using folder id and name
Content
All,
I am working on automatically sending Email out of incident status change. We have Standard Texts/Snips for various states of the incident for each language.
Each of the "ContentTypeValues" object of "$standardContent" in my below code has null values in it.
Could someone help me how to get the value (actual text and html text) of the standard text?
PS: I am using Feb 2016 version.
Thanks
Senthil K
Code Snippet
// search condition $whereClause = sprintf(" Folder.LookupName = '%s' AND LookupName = '%s' ", RNCPHP\ROQL::escapeString($folderId), RNCPHP\ROQL::escapeString($name)); // Standard Text object $standardContent = RNCPHP\StandardContent::first($whereClause); // loop through each content value foreach ($standardContent->ContentValues as $key => $value) { foreach ($standardContent->ContentValues->$key as $k => $val) { Log::Info('StandardContentValue Key - ' . $k); Log::Info('StandardContentValue value -
0