Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [forcetk]

A minimal toolkit which allows JavaScript in web pages to call the Force.com REST API in a number of different ways.

0
votes
0answers
34 views

forcetk restapi broken in visualforce page (not in lighting container)

The following code was working fine until few months back, but now it is broken and giving an error as below: var params = { 'Type': 'Folders' }; var forcetkClient = new forcetk.Client(); ...
0
votes
2answers
156 views

forcetk in lightning:container

forcetk in VisualForce Page - it works fine (below is the code). forcetkClient = new forcetk.Client(); forcetkClient.setSessionToken('{!$Api.Session_ID}'); forcetkClient.apexrest('/rest-api/get', ...
1
vote
0answers
248 views

Usage of forceTK in lightning

I was following the forceTK documentation and included forceTK and jQuery into lightning component: <ltng:require scripts="{!join(',',$Resource.JavascriptRESTToolkit,$Resource.jQueryMin_2_2_4)}" /&...
1
vote
2answers
270 views

Issues downloading docx and xlsx

We are using forcetk REST API for uploading files to contentVersion in salesforce. Everything works fine uploading and downloading files from and to contentVersion. But we are facing some issues while ...
3
votes
0answers
322 views

Ionic2 forcetk issue with CORS

following @ccoenraets' tutorial at http://coenraets.org/blog/2016/02/angular2-ionic2-salesforce/ I get an error with the CORS proxy (I think). Is it possible to deploy my own CORS app in heroku? Can ...
3
votes
1answer
252 views

Use forcetk to get all object prefix or get object name from object id

I am trying to use forcetk and I want to know if there is a simple way to: Get all object prefixes for all objects present in org OR Based on an 15 or 18 digit Id get which object does it belong ...
1
vote
0answers
223 views

Getting Forcetk to work - “GET Error net::ERR_FILE_NOT_FOUND” while using query

I am trying to create a simple Chrome extension plugin with forcetk to query on data. My manifest json { "manifest_version": 2, "name": "GTmetrix Analyzer Plugin", "description": "This ...
1
vote
0answers
185 views

Async javascript call from Visualforce to REST service returns 403 forbidden (only in production)

I have a simple Visualforce page with a couple of input fields and a button (No controller being used here) that, when the button is clicked, sends a JSON payload to an Apex REST service. I am using ...
4
votes
0answers
130 views

Chrome plugin to connect with salesforce

We're in the process of creating a Chrome Extension that communciates with the salesforce API using ForceTK. The Callback URL needs to be on a secure link (https) and as you probably know chrome ...
0
votes
1answer
293 views

forcetk file upload error in IE 10 & 11

This code for file uploading is working fine in chrome but not in IE 10 & 11. Any one has work around for this? var file = $("#fileToUpload")[0].files[0]; var title = $("[id$='titleVal']").val(); ...
1
vote
2answers
1k views

Visualforce: cannot get forcetk.js to work: 401 Error

I'm trying to get a simple example to work with forcetk.js, where I call an apex rest service defined in the same Sandbox as the vf page below. I've tried different flavors of the URL, but the error ...
3
votes
2answers
2k views

Fetching picklist values based on record type

Is there any way to fetch picklist values based on a record type. I am wondering how salesforce does it. I am fetching list of record types via ForceTK, next i want to fetch picklist values based on a ...
2
votes
1answer
1k views

Uploading attachments using ForceTk

Please suggest me how to put attachments for a record under notes and attachments using forceTk, currently i'm using the following code and it creates attachments, but i'm not sure how to link these ...
2
votes
2answers
576 views

File Uploader using ForceTK using multipart message not working in mozilla

I have been trying to upload file from Visualforce using the blog tutorial on developerforce that explains CORS feature.I am preferring REST API tied with VF since I need to built lot of other client ...
0
votes
1answer
54 views

backbon.js mobile pack sample application

I am referring sample application for mobile pack for backbone.js https://developer.salesforce.com/blogs/developer-relations/2013/04/build-mobile-web-apps-with-backbone-js-and-the-salesforce-platform....
15
votes
2answers
728 views

Is forcetk accessible in Communities

I am using forcetk to upload files (as Attachment records) in a VisualForce Page and it works fine. But when I access same page in a Community, I am not able to upload the file as I am getting the "...
0
votes
1answer
72 views

Developing a Windows Hybrid App for Partner Users - What Toolkit? [closed]

I am developing a Phonegap app for Partner users. It needs to be on javascript so I tried ForceTK with no luck. Is this possible?
1
vote
1answer
1k views

How to Include an “IN” clause to SOQL when using via forcetk

I'm working on a Salesforce Hybrid mobile application and there I need to perform an SOQL query with some filters. All are working but an IN clause. $j('input[type="checkbox"]').filter('.week_group')....
6
votes
1answer
867 views

Mobile SDK - refresh access tokens

I am developing an hybrid local app. When the access token expires I must handle the re-login process (actually, I would like to refresh the token just before it expires). in the auth.js I've seen a ...
4
votes
1answer
878 views

ForceTK in a Chrome Extension - Cross-Domain Query Issue

I'm fiddling around with writing a Chrome Extension for Force.com and came across the following blog post (http://th3silverlining.com/2013/09/14/developing-chrome-extensions-for-salesforce/). I ...
3
votes
1answer
207 views

Query image from SalesForce as blob

Is there any way I can query the image from SalesForce server as a blob object ? We already have forcetk client queries which is retrieving all the data, but the image alone is returned as a link (...
14
votes
1answer
5k views

Timeout error when posting blob data to the REST API from a VF page

I am attempting to use a newly added feature of the REST API which allows insert and update of blob data. I am doing so via the ajax proxy and I have been unsuccessful in posting a new blob Document ...
2
votes
2answers
1k views

Get Current User when using forcetk.js / JqueryMobile pack

Im currently having a play with the Salesforce JqueryMobile pack and have got stuck trying to get hold of the current user Id. (Pack: http://www2.developerforce.com/mobile/getting-started/html5/#...
4
votes
1answer
210 views

Unable to access Variables outside a ApexRest call

I am trying to parse the response data sent by RestResource in my VF page using Javascript. The JS looks like: var forceTKClient = new forcetk.Client(); var Resp; forceTKClient....
4
votes
1answer
459 views

forcetk proxy gets a 302 in session timeout

I am using the forcetk proxy so that I can send AJAX requests and not have to worry about the cross domain restrictions. The sequence is: I am on page in myapp. myapp.na9.visual.force.com/apex/...