EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB39222: How to configure MicroStrategy to write data back to Salesforce.com using Transaction Report


Community Admin

• Strategy


This technical note explains how to configure MicroStrategy to write data back to Salesforce.com using Transaction Report.

Starting with Strategy 9.2.1m, users can use Transaction Reports to write data back to Salesforce.com. Follow the steps below to create a Transaction Report for writeback:
 
1. Open XQuery Editor and Generator, select SOAP as the source type, upload the WSDL file, select "update" for WSDL Operations, and select "Generate Transaction".
NOTE: WSDL file must be obtained from Salesforce or system administrator. Also there are multiple Saleforce APIs. SOAP is used in the example below. Refer to the following link for more information on usage of other types of APIs:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_intro.htm
 

ka04W00000148lkQAA_0EM440000002JFs.png

 
2. On the "Request Definition" page, replace the Sample Request Text with the following snippet:
-----
<update xmlns="urn:enterprise.soap.sforce.com" xmlns:sf="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <records xsi:type="sf:Event"> <sf:Id>00UA0000006IIWOMA4</sf:Id> <sf:Subject>Budgeting </sf:Subject> <sf:Description>Discuss Q3 projects </sf:Description> </records> </update>
-----
NOTE: Here one record of "Event" object is used as an example. The value in the Id tag is the ID of this specific record (contact Salesforce administrator to get the ID of records that need to be updated). To figure out how to update other types of Salesforce records besides Event, consult the Salesforce API documentation.
 

ka04W00000148lkQAA_0EM440000002JG1.png

Note: The SOAP Header section needs to be empty.
3. Select "Salesforce Login" and input the Security information, follow the wizard accordingly to generate the XQuery code.
 

ka04W00000148lkQAA_0EM440000002JFy.png

NOTE: The highlighted object information (the "records" part) needs to replaced with user input objects in Freeform SQL Editor later.
 
4. Use the generated XQuery code to create a Transaction Report, insert a transaction, put the "records" part within it.
 

ka04W00000148lkQAA_0EM440000002JFv.png

 
5. Define new input objects for users to input object information and save the report. When the transaction is submitted, each input object will be replaced by user input.
 

ka04W00000148lkQAA_0EM440000002JFr.png

 
 

ka04W00000148lkQAA_0EM440000002JFw.png

 
6. Apply the transaction report on the document that queries Salesforce data. Right click on the grid, select "Configure Transaction", choose the report created above, and map the object information.
 
NOTE: The dataset report “GetEvent” is a XQuery report. Refer to following technical note to create the XQuery report
KB38308: How to connect to Salesforce using XQuery reports in MicroStrategy 9.2.x and above
 
 

ka04W00000148lkQAA_0EM440000002JFu.png

 
 
7. Add an "Action Selector Button" after configuring the transaction.
 

ka04W00000148lkQAA_0EM440000002JFx.png

 
8. Run the document in Express Mode. Edit a field and click on the Submit button.
 

ka04W00000148lkQAA_0EM440000002JFt.png

 
 
KB23401


Comment

0 comments

Details

Knowledge Article

Published:

June 6, 2017

Last Updated:

April 25, 2018