1

In a sandbox I've created a custom object with some fields. In Lightning, I've created some Search Layouts for different community profiles. I've noticed that the metadata looks like this:

<profileSearchLayouts>
    <fields>NAME</fields>
    <fields>RECORDTYPE</fields>
    <fields>00N1k000002quqz</fields>
    <fields>CREATED_DATE</fields>
    <profileName>MyCustom Community User</profileName>
</profileSearchLayouts>

Where 00N1k000002quqz is actually a custom field in the object.

When I try to deploy the whole object to production, I'm getting an error

ProfileSearchLayoutsFields 00N1k000002quqz not found

I think this because when the fields are created in production, they have different IDs.

Does anyone know why IDs are used instead of the API names? I used Developer Workbench at API v. 48 to retrieve the sandbox metadata for deployment.

  • 1
    Hello, had same issue, reverted back to v.47 in package.xml and it seems ok now – toufik_at Mar 3 at 13:58
  • Thanks, unfortunately I have some other metadata items that require v48. – David Cheng Mar 3 at 18:09
  • Yeah, you should open a case or an issue, and have SF look at it :) good luck – toufik_at Mar 4 at 10:42
0

You can just change the Id to the API name of the field.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.