SOLVED

Re: How to find the partitionname dynamically

Go to solution
Anonymous
Not applicable

How to find the partitionname dynamically

Hi,

I want to find the leads partitionname dynamically. Is there anyway to find it dynamically. This partitionname plays a very important role in updating the leads, without that API wont  allow to update. So i have to find it. If anyone knows please help me out.

i tried this way, by setting the filtervalues and fields.

filterValues = new String[] { "emiquel@sending.es" };

fields = new String[] { "id", "leadPartitionId", "leadPartitionName" };

but its not working. its giving a message like this

"{\"requestId\":\"17dc5#14fae3f6fb1\",\"success\":false,\"errors\":[{\"code\":\"1006\",\"message\":\"Field 'partitionName' not found\"}]}"

if "partitionName" is not the field name, what is the right field name for the partitionname. Is it possible to find the partitionname dynamically. if possible how..?

Hope you guys will help me on this issue.

Thanks in Advance.

Jayanth

1 ACCEPTED SOLUTION

Accepted Solutions
Kenny_Elkington
Marketo Employee

Re: How to find the partitionname dynamically

The field is returned as leadPartitionId, there is no lead field called partitionName.  To get the name of the partition, you need to call Get Lead Partions and map the id to the name.

View solution in original post

2 REPLIES 2
Kenny_Elkington
Marketo Employee

Re: How to find the partitionname dynamically

The field is returned as leadPartitionId, there is no lead field called partitionName.  To get the name of the partition, you need to call Get Lead Partions and map the id to the name.

Anonymous
Not applicable

Re: How to find the partitionname dynamically

Thank you so much. Its working