cancel
Showing results for 
Search instead for 
Did you mean: 

Lead C4C SDK -- Exception when SDK populates Company field

Former Member
0 Kudos

Dear gurus,

Good day to you.

I currently have an issue while creating a customization for Lead via Quick Create. The objective of the customization is for the SDK to write a value in the Company field.

Here is a screenshot of the code:

In a nutshell, from the LeadExtension, the LeanLead is read, and then the Organisation.FirstLineName gets a default value. (This will be changed to another value once this is working.)

When a new lead is created via Sales > Lead, click "New", after providing a 'Lead Name' and pressing Enter, the solution seems to work fine.

However, when I start working on another field, I get an exception:

When I do this task manually (i.e. input 'Lead Name' and 'Company', press enter, and input to other fields), no exceptions occur.

Please advise how I should work on this issue. Thanks!

Best regards,

John

Accepted Solutions (1)

Accepted Solutions (1)

former_member186648
Active Contributor
0 Kudos

Hi John,

You could raise an incident.

Thanks, Pradeep.

Former Member
0 Kudos

Hi, Pradeep.

Yes, I already did, and got a notice that I should get an answer by tomorrow. I'll keep you posted.

Best regards,

John

Answers (3)

Answers (3)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello John,

How do you try to populate the other fields?
Also via an action?

Are those fields write-enabled in the SDK?

Bye,
Horst

Former Member
0 Kudos

Hello, Horst.

For this case/requirement:

1. Only the 'Company' field is being populated via the SDK. The other fields will be populated manually.

2. As per Repository Explorer (version 1611), yes.

Best regards,

John

former_member186648
Active Contributor
0 Kudos

Hi John,

Attachment shows that FirstName is set inside Action script, how is action called duirng create?

Thanks, Pradeep.

Former Member
0 Kudos

Hi, Pradeep.

The Action SetCompany is called at the AfterModify event.

Regards,

John

former_member186648
Active Contributor
0 Kudos

Hi John,

In the Cloud Application Studio chose the menu item View->Dump Analysis
you might find additional information about the dump.

Thanks, Pradeep.

Former Member
0 Kudos

Hi, Pradeep.

Thank you for the reply.

Unfortunately, there are no dump entries related to this going into the Dump Analysis, which probably means it is happening outside the SDK.

Where else should I check?

Regards,

John