Hi Karl,
bq. adding specific canned values to the current result of getLibFieldList
Something like this?
Map<String,String> map = proxy.getFieldList();
map.put("UniqueId","UniqueId");
map.put("EncodedAbsUrl","EncodedAbsUrl");
return map;
bq. making sure the "built in" fields you include actually exist on all
SharePoint 2010 systems.
During experiments I added non-existent field name, it didn't harm anything.
I assume, if a user adds an additional 'built in' field, isn't that user's
responsibility to checks its existence?
I will try to learn more about built-in fields next week.
Thanks,
Ahmet
On Thursday, March 13, 2014 7:08 PM, Karl Wright <[email protected]> wrote:
Hi Ahmet,
It is actually simple to add built-in fields to the connector by adding
specific canned values to the current result of getLibFieldList and
getListFieldList, around line 3722. But there are some issues here. One
issue is that built-in fields may or may not have existed in earlier
versions of SharePoint, so you would have to confirm that SharePoint 2003
and SharePoint 2007 both had the fields you were looking for. The second
issue is making sure the "built in" fields you include actually exist on
all SharePoint 2010 systems.
If you can answer these questions, feel free to create a ticket and propose
a patch.
Karl
On Thu, Mar 13, 2014 at 12:51 PM, Ahmet Arslan <[email protected]> wrote:
> Hi,
>
> I have a use-case where I want to add additional metadata field names
> (EncodedAbsUrl, UniqueId, ServerUrl) in share point connector job
> definitions. Somehow these metadata field names are hidden and not listed
> when multi-selecting metadata fields. I assume these are similar to GUID.
>
> I confirmed these metadata fields values are fetcable, by adding
> "metadataDescription.add("EncodedAbsUrl");" to several places in
> SharePointRepository.java.
>
> It would be nice to edit existing metada field names, or add new ones via
> GUI or something. It would be nice to edit existing metada field names, or
> add new ones via GUI or something. I need this for both 'document
> libraries' and 'lists'
>
> What do you think about adding this feature?
>
> Thanks,
> Ahmet
>