In order to access CPQ Quotes through MS CRM opportunity, you need to log in to MS CRM with administrative account. After you have logged in follow these steps:
Figure A: Customizations
Figure B: Customize the System
Figure C: Opportunity forms
You can define CPQ as either Iframe that will be displayed on opportunity page in particular section, or as a new tab where Iframe with CPQ will be displayed.
In order to add Iframe either to tab or to section, click on IFRAME under the Insert tab. (Figure D)
Figure D: Adding CPQ tab
“Add an IFRAME” form is displayed (See figure E). Follow next steps to set up an CPQ IFRAME.
Replace CpqApplicationName and DomainName with the CPQ instance URL (for example www.webcomcpq.com) and with the name of your domain, respectively.
Under label field type “CPQ”
Be sure to check Pass record object-type code and unique identifier as parameters
Under Security, uncheck Restrict cross-frame scripting.
Click on Form Properties.
On tab 'Events', under Event List → Form Libraries, click on Add
Under Name, put CPQScript
For Type, pick Script(JScript)
Click on Text Editor, and add following code:
function SetUrlForCpq()
{
var IFrame = Xrm.Page.ui.controls.get("IFRAME_CPQ");
var Url = IFrame.getSrc() + "&userId=" + Xrm.Page.context.getUserId();
IFrame.setSrc(Url);
}
Save the script and publish it. At the screen top, under drop-down Actions, click on Publish.
On the same tab 'Events', under section 'Event Handlers', for Control : Form and Event : OnLoad, click on 'Add' and for Library select 'new_CPQScript'. Leave flag Enabled selected and enter 'SetUrlForCpq' for Function, since that is the function from our script.
Click on ok.
Setting should look like this :
Save form and publish it.
Log into your CPQ domain and go to Setup → CRM Integration → General.
Under ”CPQ is integrated with” drop-down list choose “Microsoft CRM”.
Under CRM Webservice Discovery URL enter:
For CRM Online customers:
For CRM On-premise customers:
Under “Your company name in CRM”, enter your company name.
Under “Domain name (enter if using Active Directory)”, enter your domain name only if you are using Active Directory.
Under “Organization URI” enter: https://{YourCompanyName}.crm.dynamics.com/XRMServices/2011/Organization.svc
Under “Endpoint type” enter LiveId
Figure - CRM integration parameters
Now you must define an administrative account. To do so, follow next steps.
In the displayed form, choose Microsoft CRM under CRM Name, then fill out other fields based on your data and needs and click Save (See next Figure)
Adding administrative account