Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
unidentified user
mtilton
Posts: 6
Registered: 10-28-2011
0

VBS script error -- data type not supported

 

Hi,

 

I'm getting a "data type not supported" error with a VBS script I'm running from MAS90. In VBA, the code works and is as follows:

 

 

Set userProp = newContact.UserProperties.Add("Parent Entity EntryID", olText, False, False)
userProp.Value = newAcct.EntryID

 

 

newContact and newAcct are of type Outlook.ContactItem; userProp is of type Outlook.UserProperty. 

 

In VBS, the code generates the unsupported data type error on the "Set userProp" line. I think this is just a VBS limitation and the only solution is to call a VBA macro from VBS. But this seems clunky, so if anyone has other suggestions, let me know. Thanks.

 

Meg