如何使用Javascript在线获取Sharepoint中所有网站功能的列表。我需要显示Guids和功能名称

时间:2016-06-30 11:54:13

标签: sharepoint office365

目前使用此代码段的唯一获取活动功能:

id

//我想在下面的代码块中获取功能名称

with
     mytable(id, val) as (
       select 100, 'abc' from dual union all
       select 173, 'z'   from dual union all
       select 250, 'dvd' from dual union all
       select  30, 'vv'  from dual union all
       select 359, 'ghi' from dual
     ),
     test_data (id_list) as (
       select '67,122,173,256,284,285,288,289,291,294,296,298,301,320,346,359'
         from dual
     )
select mytable.* from mytable, test_data
where ',' || id_list || ',' like '%,' || to_char(id) || ',%'
;

        ID VAL
---------- ---
       173 z
       359 ghi

1 个答案:

答案 0 :(得分:0)

我想做类似的事情,但显然没有办法获取功能的名称,根据documentation,SP.Feature对象中唯一可用的属性是 definitionId