Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Data & Imports Forums - SalesLogix Imports
Forum to discuss general SalesLogix import and data migration topics. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Imports | New ThreadView:  Search:  
 Author  Thread: 7.2 Import Wizard - using VBScript file
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
7.2 Import Wizard - using VBScript fileYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Aug 07 9:18 PM
I am having some fun trying to learn about the new features in the IW. Actually, maybe fun is not the right word.

I wrote a function to format phone numbers in Australian format - eg

Function FormatPhone(PhoneNo)
'perform formatting here
FormatPhone = "(02) 1234 5678" (or whatever)
End Function

And created a VBS file that includes this function. Next I ticked the 'Load VBScript file for custom functions" option and selected the file, to link it into my import.

Then in my field mapping, I try to use the function on my source phone numbers (MAINPHONE) by selecting the source phone number as the 'Import data field', Conversion Function is VBScript and resulting value is

VBScript(MAINPHONE, FormatPhone).

Is this right? It is odd, because it appears to partially work - my function strips out spaces/hyphens etc and this bit works. But it then adds in commas and spaces and this bit does not - so all phone numbers are coming through as nnnnnnnnnn.

I have tested the function in a VBScript editor and in the 'Import Script Editor' using the source data and it works fine there.

Not sure what to do next? Anyone else experiencing unexpected behaviour like this?

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 9:39:12 PM