次の方法で共有


Accessing Your MWS Custom Icons

I've fielded a few concerns around how to access your custom icons in MWS. The documentation around this is sparse, so I thought I'd blog it.

The icons you upload into the Customer Service Site / Microsoft Extranet are stored in your account's root directory. So, in order to access them, you need to set the following lines of code:

myPushpins[0].IconDataSource = "AccountName.AccountID"
myPushpins[0].IconName = "IconName"

Where AccountName and AccountID are provided to you by MPNET; IconName is what you named the icon when you uploaded it via CSS. So, if my account name was "Pendleton1999" my account ID is 1999. Let's say I uploaded an icon called "MyIcon" my code would look something like this:

myPushpins[0].IconDataSource = "Pendleton1999.1999"
myPushpins[0].IconName = "MyIcon"