Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var context = SP.ClientContext.get_current()
  2. var web = context.get_web()
  3. var actions = web.get_userCustomActions();
  4.  
  5. context.load(actions)
  6. context.executeQueryAsync(
  7. function () {
  8. console.log('Success')
  9. var enumerator = actions.getEnumerator();
  10. while (enumerator.moveNext()) {
  11. var action = enumerator.get_current();
  12. console.log(action.get_location() + " | " + action.get_description() + " | " + action.get_scriptBlock())
  13. }
  14. },
  15. function () {
  16. console.log('Error')
  17. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement