Windward DocumentationIntegration SalesforceIntegrate RESTful Engine into Salesforce Opportunities

Integrate RESTful Engine into Salesforce Opportunities

Introduction

This article will illustrate how to add a button to your Salesforce Opportunities that will allow you to connect with the Windward RESTful engine and generate reports for your Opportunities with a just a few clicks.

Setup Button for Salesforce Opportunities

The first step is to create a button that we can use on our Opportunities page that will redirect us to the Windward Salesforce Integration App that will allow us to generate a report for the given Opportunity. 

First, login to your Salesforce and go to Setup.  This will be in the top left corner of your screen once you login to Salesforce.  If you don't see a Setup link, then click on the drop down on your account name and Setup should be there.  Once you navigate to Setup, on the left sidebar inthe Quick Find / Search box, type "Button" and you should notice an option for "Buttons, Links, and Actions" under the Opportunities section. Click on that link.

Once you navigate to that link, then click "New Button or Link" at the top of the list of all the buttons and links.  This will take you to the screen to actually create the button we will use. 

For the Label and Name you can choose whatever you would like to be displayed on the button.  For instance, you could call it "Generate Report".

Next, set the display type to Detail Page Button.

The behavior, you can choose to have it open in the current page or open in a new window.  This is up to you how you would like it to act, I will chose to "Display in new window" for this example as I believe this is the cleanest way to do it.

Then, set the Content Source to URL.

Finally, and most importantly, in the big open text box, you will enter the following link to have the button navigate to our Salesforce Integration App upon click.  The link is:

https://windwardstudios.secure.force.com/GenerateOpportunity/?id={!Opportunity.Id}

Make sure that the link you enter is exactly the same as the link above otherwise your button won't work properly with the application.

Please note that this will be extendable to other Salesforce controllers such as Accounts, Contacts, Activities, etc in the future.  Currently there is support for Accounts and Opportunities.  To setup a button for Accounts, all steps are the same, the only thing you need to change is the URL here which would instead look like:

https://windwardstudios.secure.force.com/GenerateAccount/?id={!Account.Id}

Note that all future supported controllers will follow this same model /Generate[ControllerName]/?id={Controller.Id}

After the link is entered then the button should be complete and all you have to do is click "Save".  Here is an example of what the Custom Button form should look like.

Adding the Button to the Opportunities Page

Now that we have created our button to navigate us to the Windward Salesforce Integration App, we need to bind this button the Opportunities page so we can generate reports for specific Opportunities.

First, navigate to the Salesforce Opportunities page on the top navigation bar.  Once you navigate there then click on an existing Opportunity.

If you have no Opportunities, then create a new "test" Opportunity as we need to have an Opportunity page to edit the layout for.  The changes we will make will apply to all current and future Opportunities as well so we will only have to do this step once.

Once you are on the page for a specific Opportunity, click "Edit Layout" in the top left corner.

This will open a drag and drop editor with existing fields, buttons, links, etc that you can drag and drop onto the Opportunities page.  Under that editor, select the "Buttons" category on the left and you should see the custom button you made appear there.

Drag and drop that button into the Custom Buttons section next to the Standard Buttons.

After  you place your custom button, click "Save" up in the drag and drop layout editor and that button will then be available for all of your Opportunities.

You are now ready to generate reports for your Salesforce Opportunities with the Windward RESTful engine through the Salesforce Integration App!

0 Comments

Add your comment

E-Mail me when someone replies to this comment