Login / Register  search  syndication  about

          Kris Halsrud's Blog

Kris Halsrud on development and Integration with CRM and Development

SalesLogix mobile not showing tickets

The SalesLogix mobile client utilizes the SData feed to perform data retrievals, inserts and updates from the mobile device to the SalesLogix database.  The SData portal utilizes the underlying SalesLogix entity model as its object representation of the SalesLogix system.  Because of this the underlying rules of the NHibernate mappings of the entity model can influence the behavior of the mobile client.  One such instance of this shows itself when some tickets in the system do not have contact records defined for them.

This is especially likely in upgraded LAN systems because in the LAN client there is no requirement to enforce that a ticket have a contact.  If you insert a ticket in the web client interface the system now forces you to define a contact for the ticket.  This change in data requirements may seem trivial but can have a big impact when deploying the mobile client.  This is because the underlying entity mappings of the entity model the SData portal relies on assumes an inner join from ticket to contact.  If you have tickets in your database without contacts, the entity model mappings fail and therefor the SData portal retrieval of tickets fails too.  This results in the mobile client being unable to show any tickets in the mobile client.

The simple solution for this is to  ensure all tickets in the database have a contact defined.  The following SQL script will add the primary contact of the ticket's account to the ticket, or if no primary contact is defined, then the first contact created for the account.  Be aware this SQL script is not SalesLogix OLE DB provider compatible so it needs to be run directly at the database level using the SQL Management Studio.

update sysdba.TICKET set contactid = t.contactid
from
(select
case when b.contactid is null then c.contactid else b.contactid end as contactid,
a.accountid
from
sysdba.account a left join
sysdba.contact b on a.accountid=b.accountid and b.isprimary='T' left join
(select MIN(contactid) contactid, accountid from sysdba.contact group by accountid) c on a.accountid=c.accountid) as t
where sysdba.TICKET.ACCOUNTID = t.ACCOUNTID and ltrim(isnull(sysdba.TICKET.CONTACTID,''))=''

 

What's This?
  
Bookmark and Share

About Kris Halsrud

   Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.


Related Content
   Changing the Default Operator in the SalesLogix Lookup Control in the SalesLogix 7.5.4 Web Client
In the SalesLogix web client, the Lookup Control is a custom composite control that is contained in a com
Posted on May 15, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
   Building a Simple Solution in SalesLogix Web Workshop Video
If you missed this workshop... ...You can watch the video! Learn how to build a simple project managem
Posted on May 09, 2012 by Brianna Tinjum to SalesLogix Product Blog
 
   Step by step guide to creating an Account filter on RegionalManagerID in the 7.5.4 SalesLogix Web client
The SalesLogix web client there is a standard account filter for Account Manager that allows you to filte
Posted on May 03, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
   A realy cool nugget- How to show and hide tabs dynamically in the SalesLogix Web Client
In the SalesLogix LAN client and web client one of the most requested thing I am asked is how do you hide
Posted on May 01, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
   Error accessing components in the VirtualFileSystem in SalesLogix Application Architect
 I recently ran into an issue on a VFS under GIT source control where I had checked out a different
Posted on Apr 26, 2012 by Kris Halsrud to Kris Halsrud's Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2012 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register