Skip to Content
Jan 13, 2021 at 04:26 AM

How to set default value for account owner field in SAP C4C through SDK code

197 Views Last edit Feb 02, 2021 at 05:53 PM 3 rev

Dear Team,

How to set the default value for Account Owner field for prospect account while creating account I need to set default value into Account owner field that is standard field on Account overview under customer workcenter. PFB my code which I am using to set but it's not working. Could you please correct me. this code I need to write under customer.BO action.

if (this.CreationIdentity.IsSet())

{ if (this.CreationIdentity.ID.content == "XYZ" )


if( !(this.EmployeeResponsibleSales.Employee.CurrentCommon.BusinessPartnerFormattedName.IsInitial())) ----- If account owner is initial/blank then it should set value.


this.EmployeeResponsibleSales.Employee.CurrentCommon.BusinessPartnerFormattedName.Contains("3"); ---- 3 is value (employee id) which i am trying to pass. but this is not working.

Thanks and Regards,