function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VarshaVarsha 

Mahanged package Custom feilds used in Scontrols

Hello,
 
I have distributed a unmanaged package with custom feilds in the past. Now I want to go for the managed package without custom fields. I am using custom feilds in the Scontrol. But when I add this component in the package it takes customes fileds as well and does not allow me to delete it. Is there any way by which I can prevent the addition of custom feilds to the package.
 
Looking forward for the help....
Jim Yu.ax185Jim Yu.ax185
Hi Varsha,

There is no way to prevent the addition of dependent merge fields in your S-Control to the package. 

When you reference a custom field inside an S-control, the package will automatically include the referenced fields into the package.  This ensures that your package contains all the components that are needed for the package to work.

If you really want to prevent the inclusion, API calls are not automatically scanned for dependency, and you may be able to get access to the fields via the AJAX toolkit.

Jim