Activity Forums Salesforce® Discussions How can I append the video id in the url of videolink in Salesforce?


    August 18, 2016 at 1:51 pm

    Hi All,

    How can I append the video id in the url of videolink?

    For eg:
    for YouTube link after ?v= video id, so how can I use this id and add to the Salesforce Visualforce page.


  • Mohit

    August 26, 2016 at 12:41 pm

    Hi Pranav,

    Here is the code,

    String PagevideoUrl{get;set}

    String VideoUrl =  '';

    String VideoId = VideoUrl.substringAfter('?v=');

    PagevideoUrl = ''+VideoId;

    And use this PagevideoUrl on the Visualforce Page

  • Avnish Yadav

    September 30, 2018 at 12:09 am


    Click Setup | Customize | Knowledge | Settings | Check "Allow users to add external multimedia content to HTML in the standard editor" to 'True' - This will provide a new tool in the WYSIWYG editor on Rich Text fields to "Embed Media" into a Knowledge Article. You can paste the iframe code from YouTube, Vimeo and Dailymotion videos.


Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos