Activity Forums Salesforce® Discussions Can we access ForceTK in Communities?

  • Himanshu

    Member
    April 30, 2016 at 3:31 PM

    Hi Piyush,

    Try This link:-

    ://github.com/developerforce/Force.com-JavaScript-REST-Toolkit/blob/master/forcetk.js

    find function: forcetk.Client.prototype.setSessionToken leave it as is but at the end add:

    this.instanceUrl = ‘your community url’;
    this.proxyUrl = null;
    this.visualforce = false;

    This is a hack, there are ways to clean this up better, but this is the least intrusive modification I could pull off quickly.

Log In to reply.