Differences

This shows you the differences between two versions of the page.

appendixd:new_quote_from_salesforce_web_method:new_quote_from_sf_-_inputparameters [2016/06/21 09:53]
fpasovic [Obtaining sfAPIUrl (apiPartnerURL) parameter]
appendixd:new_quote_from_salesforce_web_method:new_quote_from_sf_-_inputparameters [2018/11/05 07:36] (current)
mnikolic
Line 3: Line 3:
 |domainName|String (50)|Name of the domain.|Yes|| |domainName|String (50)|Name of the domain.|Yes||
 |sessionId|String (100)|SalesForce session Id.|Yes|| |sessionId|String (100)|SalesForce session Id.|Yes||
-|sfAPIUrl|String(100)|SalesForce API Url. This parameter is actually the **apiPartnerURL** parameter that is sent in the CPQ IFRAME URL when users are directed from SFDC to CPQ during new quote creation. Step by step instructions how to obtain this parameters are added below this table. |Yes||+|sfAPIUrl|String(100)|SalesForce API Url. This parameter is actually the **apiPartnerURL** parameter that is sent in the SAP CPQ IFRAME URL when users are directed from SFDC to SAP CPQ during new quote creation. Step by step instructions how to obtain this parameters are added below this table. |Yes||
 |newQuoteXML|String(8000)|Cart XML document.|Yes|XML needs to arrive HTML encoded. Otherwise bad request message would be returned| |newQuoteXML|String(8000)|Cart XML document.|Yes|XML needs to arrive HTML encoded. Otherwise bad request message would be returned|
  
 ==== Obtaining sfAPIUrl (apiPartnerURL) parameter ==== ==== Obtaining sfAPIUrl (apiPartnerURL) parameter ====
  
-Log into your SFDC account. Edit the existing CPQ quote or click on "Add New" to create the new one. You are brought to the SFDC screen that loads CPQ IFRAME. On that screen, right click the Salesforce header and choose "view source" as shown on the image below:+Log into your SFDC account. Edit the existing SAP CPQ quote or click on "Add New" to create the new one. You are brought to the SFDC screen that loads SAP CPQ IFRAME. On that screen, right click the Salesforce header and choose "view source" as shown on the image below:
  
 {{ :appendixd:new_quote_from_salesforce_web_method:original.png }} {{ :appendixd:new_quote_from_salesforce_web_method:original.png }}
 ;#;// Figure 1 - View page source to find apiPartnerURL //;#; ;#;// Figure 1 - View page source to find apiPartnerURL //;#;
 \\ \\
-In the source code window that will open, press ctrl+F to find the following string: "**<iframe**" (without quotes). There may be more than one IFRAME in the page source, look for the one that has a CPQ URL in the "src" attribute, as shown on the image below (first highlighted row of text):+In the source code window that will open, press ctrl+F to find the following string: "**<iframe**" (without quotes). There may be more than one IFRAME in the page source, look for the one that has a SAP CPQ URL in the "src" attribute, as shown on the image below (first highlighted row of text):
 \\ \\
 {{ :appendixd:new_quote_from_salesforce_web_method:2.png }} {{ :appendixd:new_quote_from_salesforce_web_method:2.png }}
 ;#;// Figure 2 - Find an iframe  //;#; ;#;// Figure 2 - Find an iframe  //;#;
 \\ \\
-When you locate the CPQ IFRAME, you will also see the apiPartnerURL parameter (second highlighted line of text in the screen above.). Copy it properly! The whole SRC of the IFRAME will look like below. You can extract two parameters from this src as we did.+When you locate the SAP CPQ IFRAME, you will also see the apiPartnerURL parameter (second highlighted line of text in the screen above.). Copy it properly! The whole SRC of the IFRAME will look like below. You can extract two parameters from this src as we did.
  
 <code> <code>
Line 33: Line 33:
 You can also find the apiSessionID in the same IFRAME src, look for the another portion of bolded text in the above example. You can also find the apiSessionID in the same IFRAME src, look for the another portion of bolded text in the above example.
 \\ \\
-You will also notice that NewQuoteFromSF API method does not require username and password - just the domain. The username will be determined based on SF session ID provided. (So you need to log in to SFDC and perform the above steps to establish SF session, which will drive CPQ user - this means that you need to use a SF login that does have a mapped CPQ user in place.)+You will also notice that NewQuoteFromSF API method does not require username and password - just the domain. The username will be determined based on SF session ID provided. (So you need to log in to SFDC and perform the above steps to establish SF session, which will drive SAP CPQ user - this means that you need to use a SF login that does have a mapped SAP CPQ user in place.)
 \\ \\
-The rest of the API flow is just as if you called regular new quote API. The only difference is that you use salesforce for login, and that CPQ will have SF session available in case it needs to talk to CPQ during the new quote creation process.+The rest of the API flow is just as if you called regular new quote API. The only difference is that you use salesforce for login, and that SAP CPQ will have SF session available in case it needs to talk to SAP CPQ during the new quote creation process.
  
-<note>if using new quote from SF, the created quote owner will be the very same user that is used to log in to CPQ (user mapped from SFDC whose session ID you took).</note>+<note>if using new quote from SF, the created quote owner will be the very same user that is used to log in to SAP CPQ (user mapped from SFDC whose session ID you took).</note>
  
  
Line 67: Line 67:
 |  |2 for Ship to|  |  |  | |  |2 for Ship to|  |  |  |
 |  |3 for End user|  |  |  | |  |3 for End user|  |  |  |
-|Id|ID from CPQ|12345|Text|20| +|Id|ID from SAP CPQ|12345|Text|20| 
-|ExternalId|External ID (not from CPQ)|1|Text|20|+|ExternalId|External ID (not from SAP CPQ)|1|Text|20|
 |FirstName|First Name|Harry|Text|100| |FirstName|First Name|Harry|Text|100|
 |LastName|Last Name|Bruce|Text|100| |LastName|Last Name|Bruce|Text|100|
You are here: SAP Sales Cloud CPQ Online HelpSAP CPQ APINew Quote From SalesForce Web MethodNew Quote From SalesForce - Input Parameters