How to find the partitionname dynamically | Community
Skip to main content
September 8, 2015
Solved

How to find the partitionname dynamically

  • September 8, 2015
  • 1 reply
  • 1954 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kenny_Elkington

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.

1 reply

Kenny_Elkington
Adobe Employee
Kenny_ElkingtonAdobe EmployeeAccepted solution
Adobe Employee
September 8, 2015

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.

September 10, 2015

Thank you so much. Its working