cancel
Showing results for 
Search instead for 
Did you mean: 

Setting field value for a standard field(CityName)

Former Member
0 Kudos

Hello Experts,

I created a Lead business object extension because I need to replace the standard CityName field in the COD_Mkt_Prospect.QC and COD_Mkt_Prospect.TI with a drop down list. Now I'm trying to pass field value from a custom extension field(Dropdown field) to the standard field(CityName).


However, in the Event-AfterModify.absl script that I created I'm encountering this error.

I also replace the City field in Customer -> Account but did not encounter this error.

Thank you and regards,
Lenorsi

Accepted Solutions (0)

Answers (1)

Answers (1)

thomaskenner
Participant
0 Kudos

Hi Lenorsi,

sorry it took a while to see the issue.

try:

this.GetFirst().Address.PostalAddress.Elements.Cityname = this.GetFirst().CityCode.GetDescription();

i would recommend to use a foreach instead of the GetFirst(), but the correction should work 🙂

best regards

Thomas