Getting and Setting Personalization Key Values

The PersonalizationParameters class is generated automatically for managing personalization keys. When a personalization parameter value is changed, the call to save automatically propagates the change to the server.

Consider a personalization key "pkcity" that is associated with the synchronization parameter "cityname". The following example shows how to get and set personalization key values:

//get personalization key values
SUP101PersonalizationParameters *pp = [SUP101SUP101DB getPersonalizationparameters]; 
MBOLogInfo(@"Personalization Parameter for City = %@", pp.PKCity); 

//Set personalization key values
pp.PKCity = @"Hull"; 
[pp.save]; //save the new pk value. 
[SUP101SUP101DB synchronize]; 

If a synchronization parameter is personalized, you can overwrite the value of that parameter with the personalization value.