-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
1Likes Given
-
9Questions
-
10Replies
Bulk Api using Rest
- Alvin Dutt 6
- March 14, 2017
- Like
- 0
- Continue reading or reply
SOQL Query not returning results
I have ran into what seems to be a SOQL issue in either: query syntax or I've discovered a bug. I state that this might be a either a query syntax issue or a bug based on the premise that I've searched for clues and I've found nothing.
Anyways, I have created a custom view. This custom view is titled "Leads Test Cadinal". In this, I have added only 1 contact. I've populated the company field with "Cadinal Inc".
Now what I'm trying to do is fetch that contact with the company name "Cadinal Inc" (for that particular view obviously). When I execute the SOQL I get no hits returned from Salesforce despite the contact existing in the list.
Now onto the more techincal details:
I invoke the describe query in order to find the query that I want to execute to get that particular contact out. This is the query I receive after invoking the describe call
"SELECT Name, Company, State, Email, toLabel(Status), CreatedDate, Owner.Alias, IsUnreadByOwner, Id, LastModifiedDate, SystemModstamp, Owner.Id, OwnerId FROM Lead WHERE IsConverted = false AND Company like '%Cadinal%' ORDER BY Name ASC NULLS FIRST, Id ASC NULLS FIRST"When I receive the query from the describe call, the query that I will use to fetch the contact in the list is the following:
"/services/data/v38.0/query?q=SELECT id , email, Company FROM Lead WHERE IsConverted = false AND Company like '%Cadinal%' ORDER BY Name ASC NULLS FIRST, Id ASC NULLS FIRST"Now what I am confused in is why the query fails to fetch the record? My hypothesis is that Salesforce keeps
%Ca%As a reserved word. I do not know why this query fails, can someone point me in the right direction on how to correctly query this.
The following is a screen shot of my sample lead:
Thanks, looking forward to some responses.
- Alvin Dutt 6
- March 08, 2017
- Like
- 0
- Continue reading or reply
Convert Lead to Opportunity/Account REST
- Alvin Dutt 6
- February 27, 2017
- Like
- 0
- Continue reading or reply
Contacts REST API
- Alvin Dutt 6
- February 08, 2017
- Like
- 0
- Continue reading or reply
Create Feed Item using Chatter Rest Api
I keep getting error of resource not found.
- Alvin Dutt 6
- February 02, 2017
- Like
- 0
- Continue reading or reply
How to Update Feeds when Activity History is Added
How is this possible ?
- Alvin Dutt 6
- February 01, 2017
- Like
- 0
- Continue reading or reply
Create Custom Object Using Rest API
I am aware that is possible to insert , update and delete to a custom object
- Alvin Dutt 6
- January 20, 2017
- Like
- 0
- Continue reading or reply
Show Custom Object On Leads Page
for example I would want to show the custom object in that block highlighted with red along with the Activity History
I am new to Salesforce
Later I will add to data to the custom object using my own API
- Alvin Dutt 6
- January 18, 2017
- Like
- 0
- Continue reading or reply
Third party application for salesforce users
Please advice the steps as I am new to salesforce
- Alvin Dutt 6
- January 11, 2017
- Like
- 0
- Continue reading or reply
Contacts REST API
- Alvin Dutt 6
- February 08, 2017
- Like
- 0
- Continue reading or reply
How to Update Feeds when Activity History is Added
How is this possible ?
- Alvin Dutt 6
- February 01, 2017
- Like
- 0
- Continue reading or reply
Show Custom Object On Leads Page
for example I would want to show the custom object in that block highlighted with red along with the Activity History
I am new to Salesforce
Later I will add to data to the custom object using my own API
- Alvin Dutt 6
- January 18, 2017
- Like
- 0
- Continue reading or reply
Display EmailMessage custom field in activity history
If you want a custom field column to show in the Activity History related list, you add a field to Activity Custom Fields. The system then automatically associates that custom field with a Call, Task or Event, but not with an EmailMessage. The EmailMessage object, being disconnect from the other activity types, has it's own custom fields. So you can add a custom field to the EmailMessage object, unfortunately there's no way to display it, as far as I can tell, in the activity history related list.
For example, I want a custom field named Consultant to be displayed for calls, tasks, events as well as email messages. I added a Consultant field to Activity Custom Fields as well as the EmailMessage object. As you can see, unfortunately the Activy History related list is only smart enough to show the Consultant Custom field for activity type items and not email messages. Is there a workaround or some other way to make this happen perhaps?
- Chris McFarling
- December 13, 2016
- Like
- 1
- Continue reading or reply
Create OpenActivity thru REST
- Kim Yu Ng
- April 08, 2016
- Like
- 0
- Continue reading or reply
Activities | Related list | Open activities in a custom object page lyaput
In the contact page layput i have below related lists.
I have duplicated the contact object and called it customX, I have created a lookup on activites, because of which i get a related list on my customX with name "Activities",
I am wonderting how can i add the other related lists, like
Open activities,
activities history
thank you for suggestiion
- Ab
- February 23, 2016
- Like
- 0
- Continue reading or reply
How to create Custom Object using REST API services
How to create a new Custom Object using REST API services????
I am using this url : https://ap1.salesforce.com/services/data/v28.0/sobjects/CustomName
n data input as
{
"Name" : " CustomName"
}
then it gives me error as :
[
{
"message": "The requested resource does not exist",
"errorCode": "NOT_FOUND"
}
]
I am able to do all kind of stuffs like creating new record, updating deleting records in an existing CUSTOM OBJECT..........creating Triggers, Classes for it but not able to create a NEW Custom Object............!!!!
Please Help....!!
Thanks in advance....!!!
Pooja
- Pooja Garg
- August 26, 2013
- Like
- 0
- Continue reading or reply
Refresh token always returns "expired access/refresh token"
Hello
I'm working on an app in java (Android) and I'm trying to use a refresh token to obtain a new OAuth access token. I got the access token through the SalesForce Android toolkit, and this logs me in fine for the session, but when I use the refresh token to try to get a new access token, I get the following error:
{"error":"invalid_grant","error_description":"expired access/refresh token"}
My consumer key and secret both seem to be fine, because I get the appropriate errors when I alter them. Has anyone else been getting this error? Is it something to do with the URL encoding?
Here is the code I'm using:
HttpPost httppost = new HttpPost(
"https://login.salesforce.com/services/oauth2/token");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("grant_type", "refresh_token"));
nameValuePairs
.add(new BasicNameValuePair("client_id", OAUTH_CONSUMER_KEY));
nameValuePairs.add(new BasicNameValuePair("client_secret",
OAUTH_CONSUMER_SECRET));
nameValuePairs
.add(new BasicNameValuePair("refresh_token", REFRESH_TOKEN));
nameValuePairs.add(new BasicNameValuePair("format", "json"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpClient client = new DefaultHttpClient();
HttpResponse response = client.execute(httppost);
HttpEntity entity = response.getEntity();
String responseText = EntityUtils.toString(entity);
- Storm17
- May 04, 2011
- Like
- 0
- Continue reading or reply
Display EmailMessage custom field in activity history
If you want a custom field column to show in the Activity History related list, you add a field to Activity Custom Fields. The system then automatically associates that custom field with a Call, Task or Event, but not with an EmailMessage. The EmailMessage object, being disconnect from the other activity types, has it's own custom fields. So you can add a custom field to the EmailMessage object, unfortunately there's no way to display it, as far as I can tell, in the activity history related list.
For example, I want a custom field named Consultant to be displayed for calls, tasks, events as well as email messages. I added a Consultant field to Activity Custom Fields as well as the EmailMessage object. As you can see, unfortunately the Activy History related list is only smart enough to show the Consultant Custom field for activity type items and not email messages. Is there a workaround or some other way to make this happen perhaps?
- Chris McFarling
- December 13, 2016
- Like
- 1
- Continue reading or reply