Avatar URL image override by first latest for all previous group when create new one

Hi all,

Avatar URL image override by first latest for all previous group when create new one, mean to say when i creates a group by using group creation API and provide avatar image the avatar image for all previously created group by code become default.png 

Parents Reply Children
  • No I am not using loop,We have developed a UI to create group, we are just creating a group when user click on save button after filling all group info by below code

    #set($name = $core_v2_page.GetFormValue('Name'))
    #set($description = $core_v2_page.GetFormValue('Description'))
    #set($groupType = $core_v2_page.GetFormValue('GroupType'))
    #set($fileName = $core_v2_page.GetFormValue('fileName'))
    #set($fileUrl = $core_v2_uploadedFile.GetUploadUrl($contextId))
    #set($parentGroupId = $core_v2_page.GetFormValue('parentGroupId'))
    #set($imageData = $core_v2_uploadedFile.Get($contextId, $fileName))

    #set($groupResponse = $core_v2_group.Create($name, $groupType, "%{ AvatarFileData = $imageData.FileData, AvatarFileName = $imageData.Name, Description = $description, ParentGroupId = $parentGroupId}"))

    you can consider that parent id for every group would be same

  • It appears that the save order within this API is incorrect. If you add the avatar after the group is created (via an edit), the avatars should work correctly. 

    I've logged the issue with specifying the avatar on create as a bug:

    TE-16351

  •   also image size got down and image display as blur when display image as banner of 1024 size