To confirm, you have the same version of Skuid in both Sandbox and Production, and you are using the same Skuid Page (in Visualforce I’m assuming) in both environments, but in Sandbox, sforce.connection.partnerServerUrl || {{$Api.Partner_Server_Url}} is showing up as undefined ?
Yes, That’s the case.
the weird thing is that if I put sforce.connection.partnerServerUrl in the chrome console it shows the url.
The code I’m using is:
var params = argumentse0];
var url = '<a target="" rel="" href="https://composer.congamerge.com" alt="" title="Link httpscomposercongamergecom" name="" value="" type="">https://composer.congamerge.com</a>'
+ '?sessionId={{$Api.Session_Id}}'
// + '&serverUrl={{$Api.Partner_Server_Url}}'
+ '&serverUrl='+sforce.connection.partnerServerUrl
+ '&id={{Id}}'
+ '&ReportVar={{Id}}'
+ '&QVar0Id={{$Label.OSIOrderContactID}}?pv0={{Id}}'
+ '&QVar1Id={{$Label.OSIOrderContacsEmail}}?pv0={{Id}}'
+ '&QueryId=yMessage]{{$Label.QueryLastUpdate}}?pv0={{Id}},'
+ ' FirstOrderContact]{{$Label.FirstOrderContact}}?pv0={{Id}},'
+ ' Site]{{$Label.Site}}?pv0={{{Opportunity__r.Id}}},'
+ ' Contacts]{{$Label.Conga_Query_OSI_OrderContacts_mail_name_role}}?pv0={{Id}},'
+ ' Owner]{{$Label.UserQuery}}?pv0={{{Owner__c}}}'
+ '&EmailToId={QVar0}'
+ '&EmailAdditionalTo={QVar1}'
+ '&EmailCC={{$Model.User.data.0.Email}}'
+ '&CongaEmailTemplateID={{$Label.Conga_Email_Template_OrderUpdateV3}}'
+ '&EmailRelatedToId={{Id}}'
+ '&LG4=2'
+ '&AC0=1'
+ '&DS7=2';
var merges = skuid.$('<div>').html(params.model.mergeRow(params.row,url));
alert (merges.text());
All the merges are doing it correctly except for the partner url.