KPI id in different environments


We have defined a KPI and display it in MWS with the built-in portlet (can’t remember its exact name but it displays a chart for the KPI). The KPI to be displayed in the portlet is specified via the KPI’s ID as a portlet’s property.

Now the problem is that when we deploy the KPI into a different environment (e.g. integration testing) the KPI gets a different ID from what it was in the development env. Hence we have to manually adjust the portlet setting in the new environment.

Is it possible to automate this adjustment? E.g. through defining some sort of MWS alias for the KPI or using a variable substitution during deployment? We haven’t found anything workable until now.

Any help would be much appreciated.