Hi
I am using Telligent Community Server 6.1.0.23780 and need to create a group with multiple extended attributes from the custom widget that I have created in the Widget studio.
Following is the script that I have written to add a group in the system:
#if ($core_v2_page.IsPost)
$core_v2_page.SetContentType('application/json')
#set($groupName = '')
#set($groupName = $core_v2_page.GetFormValue('groupName'))
#set($groupType = '')
#set($groupType = $core_v2_page.GetFormValue('groupType'))
#set($ExtendedAttributes = "{SampleConf=TestValue}")
#set($groupResponse = $core_v2_group.Create($groupName, $groupType, "%{ExtendedAttributes = $ExtendedAttributes}"))
#if ($groupResponse && $groupResponse.Errors.Count == 0)
{"success":"True","message":"Success...$groupName $groupType " }
#else
$core_v2_page.SendJsonError($groupResponse.Errors)
{"success":"false","message":"Error..." }
#end
#end
Can you please suggest what modification should I need to make in the velocity script above to add extended attributes while creating a custom group.
Thanks.