cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving the data of a Marketing Lead into an Account via SDK

Former Member
0 Kudos

Hi All,

I have a requirement where I need to pass the value of owner (sales) of the marketing lead to owner of the account.

I have used the executequery by elements statement.

Below is my code.

leanlead = LeanLead.QueryByElements;

selparams = leanlead.CreateSelectionParams(); selparams.Add(leanlead.PartyProspectPartyKey.PartyID.content, "I","EQ", this.InternalID); result = leanlead.ExecuteDataOnly(selparams);

I am getting the data in result variable, but I am getting the data of field Owner in result, however I want the value in Owner Sales field.

How can I get the value of Owner Sales in the query?

I am new to SDK.

Regards,

Nikhil Moghe

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey Mithun,

I already tried that option, I am getting all the Lead related details.

The problem is I am not getting the Sales Owner value of Lead in result. I am getting the Owner value of Lead in result.

Regards,

Nikhil Moghe

Answers (2)

Answers (2)

Former Member

Hi Nikhil Moghe,

Can you please try this option for execute query and may be after that you can navigate to other association.

result = leanlead.Execute(selparams);

Regards,

Mithun

Former Member
0 Kudos

Hi Mithun,

Resolved the issue.

Closing the incident.