Skip to main content

How to get viewer uri from workflow?

Comments

1 comment

  • Permanently deleted user
    Hi Yinghong, 

     

    You can use the Get Request Info to grab the first part of the URL. In your workflow, it should look something like this:

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000XbhJ&feoid=Body&refid=0EM60000000XuYo" _/_img_

     

    There is a method you can use from the requestInfo variable called Application Path that will grab the first part of the URL up until the Virtual Directory folder. So if you are using this method, your hyperlink URI should look something like this:

     

    requestInfo.ApplicationPath + "/Resources/Images/Custom//hms1616.png"

     

    You will have to set the latter half of the URL but at least the first half can be generated dynamically to avoid issues when migrating between instances/servers.

     

    I hope this helps.

     

    Regards, 

     

    Carmen
    0

Please sign in to leave a comment.