+ Start a Discussion

How to create a dynamic link within a visual workflow screen

I utilize Conga Merge to produce many printable documents throughout the standard and custom objects.  To access the Conga Merge functionality, I'd like to pass the variables from my flow into a link on a flow screen.  The screen element has the ability to create a hyperlink; however, the variables are not recognized within this link.  The link is simply a static link.  Is there any way within any of the flow elements to create a dynamic link?


The link would look something like this:




I would pass in the Session Id, API.PartnerServer URL, and Opportunity Id, and some additional report filter criteria.


I realize that I can pass these variables to the closing visual force page and make the button/links available there.  However, I'd prefer to have the links available within the flow.


Try building mix of constants and variable assignments for each argument, then build up the string,

using only one "variable" per add item.


ie (no quotes needed)
conWebHTTP equals https://www.appextremes.com/apps/Conga/PointMerge.aspx

varWebSID equals sessionId={!API.Session_ID}
varWebURLequals serverUrl={!API.Partner_Server_URL_80}

varWebID equals Id={!Opportunity.Id}

varRptID equals ReportId=XXX80000003XXXX


varFullURL equals {!conWebHTTP}

varFullURL add ?{!varWebSID}

varFullURL add &{!varWebURL}

varFullURL add &{!varWebID}

varFullURL add &{!varRptID}


The put your varFullURL out on a screen as a link.






Thanks for the response.  Concatenating the constants/variables makes sense.  


How do I accomplish the last step...put varFullURL out on a screen as a link?  


The cloud designer does not have a screen output type of url, or variable type of url.  When I place the text string on the screen, the user will have to copy and paste the link into a new address.





1. Add a display text field to screen

2. Give it a unique name (ie, lnkAccountsPage)

3. For text area, put friendly label (ie, Return to Accounts Page)

4. Select all/partial of friendly label/text you specified

5. In url box (replace http://) put your link variable (ie, /{!varAccountId} )

(best practice is to omit the http/SF domain to minimize deployment issues)