0

Can anyone please tell me how to link the community while creating wiki pages programmatically using javascript. While working with a wiki on the playground, wiki pages are getting created but it is not under any community. Community id is null.

Where to configure the community while creating a wiki page programmatically using javascript.

Thanks in Advance,

fatihyildizhan
  • 8,614
  • 7
  • 64
  • 88
srinivas m
  • 19
  • 8

1 Answers1

1

You need to set the community id for the wiki like below

var wiki = wikiService.newWiki(); 
wiki.setTitle(title);
wiki.setCommunityUuid(communityId);
wikiService.createWiki(wiki);
  • rajmeet still it is not working.always i get the response without community id in it.community uuid is null.May be thats why i can see the wikis created independently. – srinivas m Apr 15 '15 at 06:17