Upload files through API and use them as attachments for Ideas

I am migration Ideas from a 3rd party platform into Verint (version 13.x). 

Many of the ideas have image and file (pptx, pdf etc) attachments. I am using the following REST API to upload these files into Verint. 

community-ppe.thomsonreuters.com/.../temporary.json

thereafter, I am using the downloadUrl returned by the above API to use it in href attribute within the content of the idea description. Initially, it all works well - i am able to view the uploaded file on the idea - if its an image, it appears inline where it should, if its a file, a link appears and I am able to download the file too,

However, if I check the same idea a day or two later, all the images/files have broken links - I am guessing its becuase the upload is taking place to some temporary location as indicated by the API endpoint. How do I make these uploaded files and their url persist permanently?

Has anyone tried doing this? 

Parents
  • You should not use the obtained url directly as href  as its referencing the temporary store.

    You need to use the DownloadUrl which you have obtained after you upload file to the /temporary.json.

    Inside the body/description you need to use a format  as below when referencing the file  in the body from the rest endpoint. Verint while creating the idea will store this to a permanent location and references the permanent url in the background. 

    [View:{DownloadUrl}:320:240]

    Where 320 , 240 are the dimensions of the image/file. ( you can specify your own dimensions). 

    Ex description below

    string description = $"<p>Lorem Ipsum is simply dummy text of the printing and 
    typesetting industry. Lorem Ipsum has been the industry's standard dummy 
    text ever since the 1500s, when an unknown printer took a galley 
    of type and scrambled it to make a type specimen book. 
    It has survived not only five centuries,
    but also the leap into electronic typesetting, remaining essentially unchanged. 
    It was popularised in the 1960s with the release of 
    Letraset sheets containing Lorem Ipsum passages, 
    and more recently with desktop publishing software like Aldus 
    PageMaker including versions of Lorem Ipsum</p> [View:{embedimageurl}:320:240] <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
    Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
    when an unknown printer took a galley of type and scrambled it to make a type 
    specimen book. It has survived not only five centuries, 
    but also the leap into electronic typesetting, remaining essentially unchanged.
    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</p>";

Reply
  • You should not use the obtained url directly as href  as its referencing the temporary store.

    You need to use the DownloadUrl which you have obtained after you upload file to the /temporary.json.

    Inside the body/description you need to use a format  as below when referencing the file  in the body from the rest endpoint. Verint while creating the idea will store this to a permanent location and references the permanent url in the background. 

    [View:{DownloadUrl}:320:240]

    Where 320 , 240 are the dimensions of the image/file. ( you can specify your own dimensions). 

    Ex description below

    string description = $"<p>Lorem Ipsum is simply dummy text of the printing and 
    typesetting industry. Lorem Ipsum has been the industry's standard dummy 
    text ever since the 1500s, when an unknown printer took a galley 
    of type and scrambled it to make a type specimen book. 
    It has survived not only five centuries,
    but also the leap into electronic typesetting, remaining essentially unchanged. 
    It was popularised in the 1960s with the release of 
    Letraset sheets containing Lorem Ipsum passages, 
    and more recently with desktop publishing software like Aldus 
    PageMaker including versions of Lorem Ipsum</p> [View:{embedimageurl}:320:240] <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. 
    Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
    when an unknown printer took a galley of type and scrambled it to make a type 
    specimen book. It has survived not only five centuries, 
    but also the leap into electronic typesetting, remaining essentially unchanged.
    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</p>";

Children
  • Yeah  is correct, you need to embed a tag within the html content, one caveat is that Telligent can be quite picky about the format of the url so you may need to handle that 

    I quickly tried this from the UX to see the requests the platform would make for a manual post of an embedded pdf file

    and the Body of the idea had a truncated url 



    If successful when you create the idea you should see the file stored in __key/tellignt-ideas as you are adding an idea, similar approaches can be taken for other content types and they would be stored in separate cfs folders

    Hope this helps