Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I am using a custom button to execute a flow and a retURL tag to return to the record after the flow has been completed.

/flow/SAMPLEFLOW?RecID={!OBJECT.Id}&retURL=https://na10.salesforce.com/{!OBJECT.Id}

The button is currently set to display in the current window w/o header or sidebar.

I would like to set the custom button to display w/o a sidebar BUT WITH THE HEADER

Does anyone know of any URL parameters I can pass in to the retURL to return to said URL but without a side bar or header.

This is to prevent the frame in frame look - Thanks

share|improve this question
add comment

2 Answers 2

up vote 7 down vote accepted

I reckon isdtp=vw (the magic service console parameter) should do it.

share|improve this answer
1  
I'm not saying this is answer is wrong since it definitely does work, but just in case someone doesn't read the blog post, they should be aware of the following from it "this is 100% unsupported and you should avoid using this whenever possible." In other words, it isn't a SF published way of doing it. –  Peter Knolle Dec 19 '12 at 23:51
    
I would support @techtrekker since after a lot of looking around I found that isdtp is the only savior. Again as pointed by peter there is no support offered by SF, but at the end isdtp gets the job done for now !!! –  rao Dec 20 '12 at 0:40
    
Thanks guys - warning is recognized. I already use some URL hacking and understand that it is not supported by SFDC. Great find though @techtrekker –  Justin J Carlson Dec 20 '12 at 18:52
1  
Author of the post reporting in, while officially unsupported just about everybody and their brother uses this somewhere, so SF is going to be pretty much forced to at least notify customers when it will break. –  ca_peterson May 22 '13 at 16:39
    
Also as a tip you can use retURL=%2F{!OBJECT.Id} and/or &saveURL=%2F{!OBJECT.Id} to make your custom url more break-proof. If your instance (naX) ever changes or if you move a link from sandbox to production, etc. it will help you out. –  user4210 Oct 22 '13 at 16:05
add comment

The easiest way would be to embed the Flow in a visualforce page and have your button call your page. When you embed your flow there's a completion attribute you can assign to return the user when the flow is completed.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_flows_adding.htm

share|improve this answer
    
So from your knowledge there is not a URL parameter to rid of the sidebar and header? –  Justin J Carlson Dec 19 '12 at 17:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.