function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MasterdouglasMasterdouglas 

Integration between screens

I have a requirement to integrate a non-salesforce.com screen with the salesforce.com search. From the search results, I want to redirect back to my non-salesforce.com screen with some Client data (Name for example).  Can this be done?

 

What if I wanted to do the same scenario with a Create?  After the Person is created, I want to redirect back to a non-saleforce.com screen and maybe pass back the ID. 

 

Any thoughts or direction on this would be greatly appreciated.

 

-Doug

 

bobo

Sure, you can do this. You'll need to pass the id as an url parameter, and the other app will need to be able to interpret the parameter.

 

Here is an example of a custom link (in setup/customize/leads/buttons and links) that opens a new window and searches jigsaw for a lead by name. If you put this on a VF page, it will do the same.

 

http://www.jigsaw.com/FreeTextSearch.xhtml?opCode=search&autoSuggested=true&freeText={!Lead.Name}

 Or, if you want to redirect after the user clicks a button on your page, you can do something like this:

 

public PageReference myButtonAction() {    
    return new PageReference('http://www.myotherwebapp.com/?' + theContact.Id);
}

 

        <apex:commandButton value="Go to my other webapp"
                            action="{!myButtonAction}"/>