ruby,ruby-on-rails-3,ruby-on-rails-4,gem,salesforce
Faraday requires a valid root certificate to establish a connection. If you're on a Windows machine, install the certificate with these instructions: https://gist.github.com/867550 For Mac, perform the following: sudo port install curl-ca-bundle Next, in your Faraday request, include this line immediately above where you actually send your request (e.g. https.request_get('/foo')):...
Unfortunately, you can't use ArrayLists as parameters in Salesforce (or Database) queries. You'll have to create the query dynamically with a script component. Try this: <scripting:script engine="Groovy"> <![CDATA[def sb = new StringBuilder() sb.append('Select Id,Billing_Number__c from Call_Log__c') if (flowVars.successlist != null && !flowVars.successlist.empty) { sb.append(' where Id in (\'') for (i...
api,validation,rest,salesforce,metadata
You can use the REST version of the Tooling API to get the validation rules. See the official documentation: ValidationRule You can use Workbench to see the ValidationRule sObject via a REST GET. To list all the validation rules the REST SOQL query would be something like: /services/data/v31.0/tooling/query/?q=Select+Id+From+ValidationRule Incidentally, the...
Your test isn't actually using any of the methods in the class you wrote. Perhaps: @isTest public class testupdate_active_status { static testMethod void myupdate_active_statusTest() { Account acc = new Account(Name = 'Test Account'); insert(acc); Date d = Date.today(); acc.Contract_Expiration__c = d; update(acc); testupdate_active_status.update_active_statustest(); // Call your new method! acc =...
api,security,salesforce,token,clientid
The CLIENT_SECRET and CLIENT_ID come from the Connect App settings. See: https://www.salesforce.com/us/developer/docs/api_rest/Content/intro_defining_remote_access_applications.htm If the settings you are currently using are for someone else's Connected App then I'd suggest creating a new Connected App and using its values instead....
Both Salesforce.com and Salesforce1 can be accessed via a web client running on a PC, tablet, or phone. Salesforce1 is optimized to work on a small touchscreen and can have functions via 3rd party apps to access iOS or Android features like GPS location data. ...
Unfortunately, we don't currently offer the triggers to query Data.com's database. However, there are a couple of other ways to integrate Data.com with Base. You can either use a polling-driven trigger to Data.com, you could attempt to configure a workflow in Data.com to send this data over to Base, or...
Most likely the customer you are communicating with will be represented as a Lead or Contact in Salesforce. If this is the case, then you probably want to store the emails in an Activity History. This is what happens if you send the email via the UI. In reality it...
Try this to get Label Name from Salesforce Object Fields: Schema.getGlobalDescribe().get('ObjectName').getDescribe().fields.getMap().get('FieldName').getDescribe().getLabel(); Your code: public List<SelectOption> getObjectFields() { Map<String, Schema.SObjectType> schemaMap = Schema.getGlobalDescribe(); Schema.SObjectType ObjectSchema = schemaMap.get(selectedObject); Map<String, Schema.SObjectField> fieldMap = ObjectSchema.getDescribe().fields.getMap(); List<SelectOption> fieldNames = new...
javascript,php,salesforce,apex
You might have a look at the following link. This is calling apex classes from external applications. You would need to expose the apex classes as webservice. https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts Also, you might have a look at this...
Callback URL is where Salesforce will redirect after successful authentication. I have not used it with Salesforce but I have done this with other cloud connector and you can refer some of my slide share for details. Please try with those links and let me know if u still have...
You can add a new user and create a special permission set to only allow read access. Dev orgs come with two users, but you can deactivate/re-activate users to get around the limit. Or ask SFDC support to add a few more users to your dev org. There are several...
javascript,angularjs,salesforce,visualforce
Are you using $scope.lblMsg={value:result['message']} inside a callback fro ma 3rd party api, like salesforce instead of a normal $http call? If 'yes', then you should consider wrapping that in an $apply block or an $applyAsync one, otherwise Angular won't know about that update.
salesforce,apex-code,docusignapi,apex
It is possible with Salesforce and DS but not the way you are going at it. I answered your question about background correct on the other question at Send (Load) a URL to web browser and run it in background in APEX Merge fields are part of the question, but...
SFDC APIs used to read and write data to Salesforce objects. Usually using SOQL. I do not understand your statement "I need to get a file from SFDC but not reading content". Would you please explain? The following link list latest Mule SFDC connector APIs. The metadata APIs deals with...
ruby-on-rails,security,oauth,salesforce
I wouldn't do an array of admins, that is far more messy then allowing Salesforce to regulate permissions. If all you want to do is restrict non-admin profile users, I would first create and is_admin column on the User model and user that to provide access. I am assuming your...
SOQL doesn't support functions in select clause (other than aggregates). You'll need to either create a formula field for your function and select that instead, or do the processing on the client once you've fetched the data.
The API REST API will be working with UTC DateTime values. So you searched for records between: 2015-06-30 06:49:00 UTC 2015-06-30 16:30:26 UTC Which I make to be: 2015-06-30 12:19:00 IST 2015-06-30 22:00:26 IST So it would make sense that a record created at 16:45 pm on the 30th of...
I raised a case with Salesforce support regarding this. Currently this is not possible. They have taken this as an Idea. Feel free to vote and promote this idea. https://success.salesforce.com/ideaView?id=08730000000DpZwAAK For more information regarding your inquiry please reference the Knowledge Base Article below or you can search the Help &...
triggers,salesforce,field,updates
In General, the triggers are fired whenever there is a change to any/all fields in the object. What you can do is compare the value in trigger.old with the value in trigger.new eg: trigger TestTrigger on Account (before update) { for(Account a : Trigger.new){ if(a.Active__c != Trigger.oldMap.get(a.id).Active__c) System.debug('change in Active...
The System.JSON method should do the trick: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_json_overview.htm Something like: String strSobjects = ' '; for(Custom_sobj__c obj : sobjList){ strSobjects = strSobjects + ','+JSON.Serialize(obj); } ...
python,rest,flask,oauth-2.0,salesforce
The short answer is yes Miguel Grinberg talks about securing your REST api (in which he talks about oath) in his blog post here: http://blog.miguelgrinberg.com/post/restful-authentication-with-flask and he has a general guide to using oauth with flask here: http://blog.miguelgrinberg.com/post/oauth-authentication-with-flask His blog posts answered all of my questions when I was building...
python,python-2.7,salesforce,list-comprehension,soql
You're getting the key error because you're trying to look up Opportunity__r in query_results, which doesn't have an Opportunity__r key. Instead, Opportunity__r is a key in the record. I think what you want is: List_Results = [[record['Id'], record['Order_Type__c'], record['Opportunity__r']['Approval_Date__c']] for record in query_results['records']] ...
java,dictionary,salesforce,apex
you can modify your code like this.In this code I am creating a new instance for each map insert. Map> result = new Map>(); List temp; for(CustomObj__c i:customList){ for(CustomObj__c j:customList2){ if(j.id == i.id){ temp = new list<string>(); temp.add(j.Contact__r.Owner.Id); temp.add(j.Contact__r.Id); result.put(i.Deal__r.id, temp); break; } } } ...
javascript,salesforce,visualforce,apex
Yes, you can use the Metadata API to create custom objects from code. It is possible to call the Metadata API from Apex, but you need to make some adjustments to get it to work correctly. See Introduction to calling the Metadata API from Apex...
After searching and googling profusely about TLS connections, etc, I noticed this weekend that my cmd.exe window (which I run the PIP commands from) was launching under C:\Windows\System32> and all of my vms were launching within my personal user directory. So I searched for my roaming cmd.exe and when I...
All REST API calls to Salesforce must be authenticated. If you want anonymous API access then you will need to proxy authenticated calls through a server (like on Heroku) that adds the auth token. Or you can use Heroku Connect to expose your Salesforce data to a Heroku app as...
salesforce,crm,salesforce-service-cloud
Salesforce provides several APIs out of the box that can be used to access the data stored in your Organization. Have a look at the REST API, Enterprise API and the Partner API. See Which API Should I Use?. If none of those suit your needs you can use Apex...
With intermittent failures like this, particularly where no recent code changes have been made, a good starting point is http://trust.salesforce.com/trust/status/. You can identify your pod from the URL, and then lookup any status issues for a recent date. E.g. Incidentally, the Salesforce StackExchange is a great place to ask Salesforce...
list,loops,iterator,salesforce,apex-code
If you're just trying to get a list of user name and UserName values you need a set. set<String> setUserInfo = new set<String>(); for(User currentUser : [SELECT Name , UserName, LastName FROM User WHERE IsActive = true]){ setUserInfo.add(currentUser.Name); setUserInfo.add(currentUser.UserName); } But it's hard to tell exactly what you are trying...
The DocuSign for Salesforce (DfS) app on the App Exchange is an end product (ie. end-user product). If it's current feature set does not solve all of your business needs then you can always do an API integration and use the DocuSign Connect module. Using DocuSign Connect you can setup...
csv,salesforce,visualforce,apex
You will be extremely limited in how much data can be passed in the Query String using the PageReference.getParameters() method. Note that this method is limited to URL parameters. POST variables need to be handled by having a common controller class with a non-transient member to deserialize the data into....
ember.js,salesforce,visualforce
Ember Router will already separate server and client part of URL with hash when Router's location is set to hash, i.e. App.Router.reopen({ location: 'hash' }); ...
c#,json,salesforce,json.net,asp.net-web-api2
You can use JToken.ToObject generic method. http://www.nudoq.org/#!/Packages/Newtonsoft.Json/Newtonsoft.Json/JToken/M/ToObject(T) Server API Code: public void Test(JToken users) { var usersArray = users.ToObject<User[]>(); } Here is the client code I use. string json = "[{\"UserId\":0,\"Username\":\"jj.stranger\",\"FirstName\":\"JJ\",\"LastName\":\"stranger\"}]"; HttpClient client = new HttpClient(); var result = client.PostAsync(@"http://localhost:50577/api/values/test", new StringContent(json, Encoding.UTF8,...
sql,salesforce,crm,exacttarget
Updated query should give you required result : SELECT EML , SubscriberKey FROM _ListSubscribers WHERE EML IN ( SELECT EML FROM _ListSubscribers GROUP BY EML HAVING COUNT(*) = 1 ) UNION SELECT EML , SubscriberKey FROM _ListSubscribers WHERE EML IN ( SELECT EML FROM _ListSubscribers GROUP BY EML HAVING COUNT(*...
As per your explanation you are getting the error of Required fields are missing (Company_Name__c) and you tried to assign the value to this "companyName" field, But you are getting error for custom field not standard salesforce field. So i think when you are converting it, then may be some...
I managed to do it finally. I used a custom field on the object, and complete its value on creation of the record depending on user agent. Then in the trigger I only need to check that field and not the userAgent anymore. Hope this can help....
"//div[@class='pbSubsection']//td[@class='data2Col']/text()" yields ['Connection Details', 'teamviewer 12345 \r', '\r', 'Server: Customer Name, ST\r', 'Username: administrator\r', 'Password: password1'] ...
salesforce,relational-database,soql
Easiest way would be to create a rollup summary field in contact object to show the count of deals. This is needed only if you need to get it in one query. Otherwise you can go for apex code with query and then filtering by iteration. Then you can run...
ruby,ruby-on-rails-4,salesforce,nil
Try this: restforce_hash.count { |key, val| !val.nil? } ...
I found the answer. The instructions at http://blog.wdcigroup.net/2013/10/talend-tsalesforceoutputbulkexec-component/ are correct, but I was referencing the wrong field.When the instructions say to go to the Advanced settings tab on the tSalesforceOutputBulkExec component, it says that "the ‘Lookup field name’ is the lookup field between the Contact and Account objects in the...
Presumably the deploy belongs in Targets, not Build File.
java,android,push-notification,salesforce,pusher
You can use pusher from the background service. Just make a connection from the android background service.
vb.net,salesforce,httpwebrequest,scheduled-tasks
As per my previous comment, it would appear there is a proxy involved that requires the user to be logged in for the request to succeed. Your response: We use an internet security web proxy that works via Single Sign On for users. Basically the tool pulls the users network...
ruby-on-rails,ruby,ruby-on-rails-3,salesforce
According to the SOSL specification, + is a reserved character and has to be escaped with a backslash. All the characters that need to be escaped are ? & | ! { } [ ] ( ) ^ ~ * : \ " ' + -
According to the Salesforce SDK There is a ScrollView in a WebView. This shouldn't be necessary and may cause a problem such as the one you described. Changing the ScrollView to LinearLayout should fix the issue....
Ahh. Well the client was showing the form to Salesforce (they wouldn't give me access) and I guess it is working now. That must've been the issue, because I haven't changed anything on my end. Thanks for your time! – Beth 2 mins ago
From NSJSONSerialization's doc An object that may be converted to JSON must have the following properties: The top level object is an NSArray or NSDictionary. All objects are instances of NSString, NSNumber, NSArray, NSDictionary, or NSNull. All dictionary keys are instances of NSString. Numbers are not NaN or infinity. But...
I tried client.create!('Contact', Email: '[email protected]') which showed me the error that LastName is a required field as specified in the comment. So the solution is to specify LastName also like shown below: client.create('Contact', Email: '[email protected]', LastName: 'Bar') Thanks and Happy Coding....
Finally Found a solution. I just query the Opportunity for the record, check the user who owns it. NSString *theRequest = [NSString stringWithFormat:@"SELECT Owner.Email FROM Opportunity "]; SFRestRequest *request = [[SFRestAPI sharedInstance] requestForQuery:theRequest]; [[SFRestAPI sharedInstance] send:request delegate:self]; then used the email using MessageUI.framework: - (void)showEmail:(id)sender { NSString *emailTitle = @"Email...
java,salesforce,visualforce,apex,soql
Set does not maintain sort. The fact that the values seem to be coming out in reverse order is coincidence. Can you use List instead?
ios,salesforce,salesforce-ios-sdk
A fix for this bug has been submitted as part of Mobile SDK 3.1.1 patch on GitHub, npm (forceios), and Cocoapods. Please see https://plus.google.com/105428096535342044035/posts/AkoVwL5Kdt3 for more details.
are you in a "non-Developer-Edition" Production org? You must be in a Sandbox environment to create classes then deploy them to Production once tested. If you logged from login.salesforce.com you're in a Prod instance, you must log from a different URL (test.salesforce.com) or from within the Prod org (Setup /...
php,symfony2,file-upload,salesforce
Since you are using OneupUploader, you should add some custom data with the upload so you know which process/upload type runs. Each controller/service that is responsible for rendering the twig page should pass a custom variable that is available in twig which I am calling 'filetype'. In your salesforce bundle,...
php,web-services,soap,wsdl,salesforce
I find the solution, here my code : <?php // salesforce.com Username, Password and TOken define("USERNAME", "My_username"); define("PASSWORD", "My_password"); define("SECURITY_TOKEN", "My_token"); // from PHP-toolkit ( https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_PHP ) require_once ('soapclient/SforcePartnerClient.php'); $mySforceConnection = new SforcePartnerClient(); $mySforceConnection->createConnection("Partner.wsdl.xml"); $mySforceConnection->login(USERNAME,...
wsdl,salesforce,integration,biztalk
Use the (WCF.CustomOutboundHeaders) context property. Replace this line: //Setting Header msgSendQryToSalesforce(WCF.Headers) = "<ns0:SessionHeader xmlns:ns0=\"urn:enterprise.soap.sforce.com\"><ns0:sessionId>" + SessionId + "</ns0:sessionId></ns0:SessionHeader>"; With this // Setting Header msgSendQryToSalesforce(WCF.OutboundCustomHeaders) = "<ns0:SessionHeader xmlns:ns0=\"urn:enterprise.soap.sforce.com\"><ns0:sessionId>" + SessionId + "</ns0:sessionId></ns0:SessionHeader>"; If...
salesforce,docusignapi,docusign
Is this embedded or remote? I'm guessing embedded if it's a quote. One option is to use the "Finish Later" button. Then set a specific url route back to your app (Features -> Branding -> edit -> Landing Pages) such that that landing page within your app says something like...
Ok, so at this stage, while I'm not 100% sure, this does not seem possible, at least with the Tooling API, i've explained a bit more below on what i've tried. In the meantime i can 100% confirm that this does indeed work with the Metadata API perfectly! Here is...
As given in the error message, I didnot included complete fields in the list which are mandatory to create/update account in sfdc. My final code is: public List<Map<String, Object>> getPayloadData(@Payload String src){ Map<String, Object> sfdcFields = new HashMap<String, Object>(); List<Map<String, Object>> accountList = new ArrayList<Map<String,Object>>(); sfdcFields.put("ID", "001m000000In0p5AAB"); sfdcFields.put("Current_WSE_Count__c", "20"); accountList.add(sfdcFields);...
automation,webdriver,salesforce
Please try clicking on the Accounts tab by using either of the following codes: 1- driver.findElement(By.xpath("//li[@id='Account_Tab']/a")).click(); This will locate the 'a' element under 'li' element with id 'Account_Tab' and click on it. 2- driver.findElement(By.xpath("//a[@title='Accounts Tab']")).click(); This will locate the 'a' element with title 'Accounts Tab' and click on it. 3-...
javascript,ajax,http,xmlhttprequest,salesforce
This answer shows how to manually build a multipart/form request body that includes the binary, and that bypasses the standard UTF-8 encoding done by browsers. This is done by passing the entire request as an ArrayBuffer. Here's the code I'm using to resolve the problem (as seen in this answer):...
ruby-on-rails,ruby,ruby-on-rails-4,salesforce
I think this is the better way for you: #config/initializers/client.rb class RestforceClient include Singleton def restforce @client ||= \ Restforce.new :username => ENV['SALESFORCE_USERNAME'], :password => ENV['SALESFORCE_PASSWORD'], :security_token => ENV['SALESFORCE_SECURITY_TOKEN'], :client_id => ENV['SALESFORCE_CLIENT_ID'], :client_secret => ENV['SALESFORCE_CLIENT_SECRET'], :host => ENV['SALESFORCE_HOST'], :debugging => ENV['TRUE'] end end # app/controllers/application_controller.rb private def client...
python,pandas,salesforce,beatbox
You can use a SOQL semi-join to restrict the Account query to only those accounts with opportunities, e.g. svc.query("SELECT ID,Website FROM Account where ID in (SELECT accountId FROM Opportunity)") ...
google-maps,salesforce,visualforce
Below code did the trick! var accountNavUrl; try{ if(sforce.one){ accountNavUrl='<a href="javascript:sforce.one.navigateToSObject(\''+account.Id+'\');">'; } } catch(err) { console.log(err); accountNavUrl='<a href="../' + account.Id + '" target="_parent">'; } console.log('-->'+accountNavUrl ); var content=accountNavUrl+account.Name+ '</a><br/>'+account.BillingStreet +'<br/>' + account.BillingCity +'<br/>' + account.BillingCountry; ...
wsdl,salesforce,integration,biztalk,biztalk-2010
Got this Sample SOAP messages in xml format from Salesforce.com. https://developer.salesforce.com/page/Sample_SOAP_Messages. Now I able to do all operations purely from wsdl, not C# code. Thank you all for your help. Zahir Shaikh...
Here is what I use: curl https://login.salesforce.com/services/oauth2/token \ -d "grant_type=password" \ -d "client_id=YOUR_CLIENT_ID" \ -d "client_secret=YOUR_CLIENT_SECRET" \ -d "username=YOUR_USERNAME" \ -d "password=YOUR_PASSWORD_AND_SECURITY_TOKEN" Maybe you are forgetting to append your security token to the end of your password?...
@Qazi I hope, link below will solve your problem. PHP Soap API: For salesforce SOAP API
c#,asp.net,asp.net-web-api,salesforce,visualforce
From C# you have two common ways to integrate with Salesforce: Use the Partner API. Import the Partner WSDL and make the required SOAP callouts. Use the REST API. Make JSON based requests and parse the responses. Of course, there are a range of libraries to make these tasks easier...
ios7,oauth,oauth-2.0,salesforce,salesforce-ios-sdk
Finally I achieved it and the good answer for this question is Download "SalesforceMobileSDK-iOS-Distribution" from below link https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Distribution . Extract all the "-Release.zip" files and add those to your application. Set Header Search path for all libraries as "$(SRCROOT)/your app name/your library name" and choose "recursive". Set Other linker flags...
html,angularjs,salesforce,apex
You could try prefixing them with data- so they become html5 complaint and angular parses them too. If there is still an issue with standalone attribute example (data-ts-wrapper) then probably you could just provide a value for them, example- data-ts-wrapper="ts-wrapper" (Since it looks like those directives does no expect any...
Record types are used for different business processes to use different pagelayouts and picklist values. There is nothing to worry about fields as they are independent from recordtypes.
The client can handle this by having some logic for handling a request to the Salesforce API which fails with an Unauthorized response. When an Unauthorized response is received the client can ask your web server for a new access token / session id. Alternatively you'd have to use WebSockets...
Seems like you have a special hidden character in following line contactToUpdate.Last_Advisor_Touch__c = new Da te(); in word Date If you just rewrite it it should work. Specifically you have the infamous ZERO WIDTH SPACE between Da and te probably comes from this. To eliminate such things you can use...
Since you aren't getting an Account record back from your queries (and that is the major difference between your code and jeff's code), you'll need to create an account wrapper object. This object would be an internal class of your controller. The wrapper could look like this: public class AccountWrapper...
for future me or future human this is how I fixed it: List<String> objectNames = new List<String> {'More_Info_Request__c', 'Object1__c', 'Object2__c'}; for (String objectName : objectNames) { List<SObject> existing = Database.query('select id from ' + objectName); delete existing; } ...
ruby,ruby-on-rails-3,heroku,salesforce
Give one try to add this addon from Heroku Addon Dashboard Interface. This is because Heroku connect is available to selected business users. And you have to tell business purpose to Heroku for using Heroku connect to get this addon. ...
Turns out you can do this (for some reason) [select MemberId, Member.Name from CaseTeamMember where ParentId = '<Your Case Team Id`>] I don't know if I'm missing something but this wasn't apparent from what I read in the documentation. I'm putting this here hoping it will help someone....
Finally Fetched the email/username and the user iD. I didn't notice the comment below. And yes password cannot be fetched thank you @john. You certainly cannot fetch the user's password nor should you be able to -- that's the entire point of OAuth. #import "SFIdentityData.h" #import "SFAuthenticationManager.h" userName = [SFAuthenticationManager...
Yes it is doable. Create a new folder and put the icon in the custom folder. Now you can add it to the package (actually it will add the folder automatically if you add the tab).
You should be able to do this using URLFOR() though I haven't tried it with a tab before so here's some documentation to help I do know that a custom tab can be referenced by name followed by __tab such as My_Custom__tab, or standard tabs by using $Action such as...
salesforce,integration,dynamics-nav
You can use Web services to read/modify Nav data. I suppose upgrade of web service based integration will go smoothly between Nav 2009 and Nav 2015. See this answer for very basic description of possible integration how it looks from Nav side. Other options: Access nav data directly via SQL....
Generally speaking (I'm not familiar with SalesForce mobile dev) if you are using the SDK provided correctly (seemed hard to misuse, only it didn't support the latest Cordova versions?) it should keep the app allowed. That indicates that the problem is with your SalesForce settings. Inside SalesForce, go to Setup...
I got answer..how to insert lookup data type record in salesforce through mule. Use recordId to store that value... Thanks...
git,salesforce,build-process,bamboo
Solved it using git log --pretty=format: --name-only --diff-filter=D ${bamboo.repository.previous.revision.number}..HEAD --summary | sort -u > removals.txt results in a nice clean output of removed files...
python,pandas,salesforce,beatbox
Yes, you can add the condition to the salesforce query, e.g. SELECT ID, CreatedDate from Opportunity WHERE CreatedDate > 2015-01-01T00:00:00Z As CreatedDate is a Date/Time field, you need to provide a full dateTime for the comparison value. the SOQL docs cover all these. There are also tools like SoqlX, Workbench...
javascript,xmlhttprequest,salesforce,visualforce
I'm still curious of the answer to the real question of why this happens. I've got a few thoughts, but this first: change your merge code to the following snippet. Communities.mergeHeader = function(header) { console.log("header: %o", header); var head = document.getElementsByTagName("head")[0]; head.innerHTML = header.head.outerHTML; }; I will follow up with...
I just created a fiddle for the snippet that you posted. And it works fine for me. I think you are missing the necessary jqPlot files. Make sure you are including the necessary files in the <script> tag Here's the list of files to be included. Have you included these...
salesforce,apex,soql,grandchild
You can try query as: public List<Meeting__c> MeetingsList2 = [SELECT Name, GPS_Meeting_Location__Latitude__s, GPS_Meeting_Location__Longitude__s FROM Meeting__c WHERE Group__c =:id AND Group__r.Location__c =:locationId ORDER BY Meeting_Date__c ASC LIMIT 1]; I assumed, there is a reference field to Location(Location__c) in Group object and you have Location record Id in variable locationId. FYI- __r...
facebook,facebook-graph-api,salesforce,apex-code
You need to use a Page Token instead of a User Token. Information about the Tokens and how to generate them: https://developers.facebook.com/docs/facebook-login/access-tokens/ http://www.devils-heaven.com/facebook-access-tokens/ http://www.devils-heaven.com/extended-page-access-tokens-curl/ ...
javascript,jquery,html,salesforce
you can't do $('*[data-salesforceprojectid="' + focusedProject + '"]').addClass('ui-state-active'); to make the hard coded part into a variable?...
There are two approaches for this: Create a canvas app that sends a signed request to your site. The signed request will include the current users session details. You can use these to verify that the user is indeed who they say they are. I.e. They haven't just made up...