Thursday, 19 May 2016

Message is not getting created in EXM

Leave a Comment
I have been working on Sitecore EXM (Email Experience Manager) for one POC and faced few issues with the EXM module. Recently I stuck in a situation where clicking the Create button does not create a new message in EXM. I am working with Sitecore 8 Update 5 and EXM 3.1 rev. 150811 (Update-1).
Clicking on create button doesn’t perform any action and the dialog window just hangs. A quick Google search has redirected me to this knowledge base article but unfortunately the given solution didn’t work in my case. On troubleshooting MessageCreationDialogBase.js (location : /sitecore/shell/client/Applications/ECM/EmailCampaign.Client/Dialog/MessageCreationDialogBase.js) I have found that .aspx extension is getting appended to createType.
I’ve modified javascript code and added below lines above switch statement code block:
    if(createType.includes('.aspx'))
    {
     createType = createType.slice(0,-5);
    }
Updated code:
   if(createType.includes('.aspx'))
    {
     createType = createType.slice(0,-5);
    }
          switch (createType) {
            case "ExistingTemplate":
              this.createExistingTemplate(contextApp, eventInfo);
              break;
            case "ExistingPage":
              this.createExistingPage(contextApp, eventInfo);
              break;
            case "ImportHtml":
              this.createImportHtml(contextApp);
              break;
            default:
          }
Clear browser cache and make sure that updated javascript file is getting loaded. Comments and suggestions are most welcome. Happy coding! 
Read More...

Sunday, 15 May 2016

Error : HTTPS connection is required for Orders and Profiles webservices

Leave a Comment
I've been working with Sitecore Commerce 8 powered by Commerce Server now for a while and trying to configure the demo store which is based upon Reference Storefront solution provided by Sitecore commerce product team.  I’ve successfully managed to get the demo store running but I have faced below error while opening Commerce Server Customer and Orders Manager business tool:
HTTPS connection is required for Orders and Profiles webservices. 
By default the Commerce Server Customer and Orders Manager business tool requires that the connections to the Orders and Profiles web services should be over HTTPS. This behaviour can be changed to allow it to work over HTTP instead.  However HTTP connection configuration is not recommended for LIVE or PRODUCTION environment as you should always use HTTPS to ensure data is secure but HTTP connection can be useful in development and test scenarios where HTTPS communications are not easily available.

Follow below steps so that Commerce Server Customer and Orders Manager business tool allow HTTP for connectivity to the Profile and Orders web services:
  1. Navigate to C:\Program Files (x86)\Commerce Server 11\Business User Applications directory.
  2. Open the file CustomerandOrdersManager.exe.config in notepad.
  3. Search for below entry under <applicationsettings> section.
    <setting name="AllowHTTP" serializeAs="String">
                    <value>False</value>
    </setting>
  4. Change this entry as shown below:
     <setting name="AllowHTTP" serializeAs="String">
                    <value>True</value>
    </setting>
  5. Save the config file.
  6. Restart IIS or recycle application pool of profiles web service.
  7. Open Commerce Server Customer and Orders Manager business tool and enter standard HTTP connection strings for the Orders and Profiles Web Services URLs in Site Connections window.


Comments and suggestions are most welcome. Happy coding! 
Read More...