• Carl Pierre
  • NEWBIE
  • 30 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 14
    Replies
Is possible to get campaign changes since  my last REST API request?

Is possbble to have a list of updated campaigns?

For example if the campaign_name = test1 become campaign_name= test3
 

Hi,

I have a test account I'm not able to resfresh my token

This is the endpoint used

https://test.salesforce.com/services/oauth2/token

for grant_type I use refresh_token
for refresh_token I use the resfresh token received with my token

it always returns the same token that is now expired

This is an example of how the response looks like:

{
    "access_token": "00oo0mYw_3k3lGCdtt4TC_TqD6ojIZmHyXCIWAHzYQPY349cnN2I4444",
    "signature": "Zp8Z2+TYKG+000UsO5zXg47mGUBLAHUEAEPMk8pEE=",
    "scope": "refresh_token visualforce wave_api web custom_permissions openid chatter_api id api full",
    "instance_url": "https://c00-De.cs42.my.salesforce.com",
    "id": "https://test.salesforce.com/id/00D550222006Dz6EAE/00555000001BQFxAAO",
    "token_type": "Bearer",
    "issued_at": "7777777"
}
I'm not able to query fields with picklist type

There is my query as example:
SELECT Landing_Page__c from Campaign
There is my error message
[
    {
        "message": "\nERROR at Row:1:Column:146\nNo such column 'Landing_Page__c' on entity 'Campaign'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
        "errorCode": "INVALID_FIELD"
    }
]
The fields listed below are listed in my SalesForce dashboard and their Api names are well spelled but I have an error message when I included them in my request for getting campaigns.
  • Owner
  • Objective__c
  • Tactic
  • Landing_Page__c
 
There  is the error message:
 
No such column '[fields]' on entity 'Campaign'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.","errorCode":"INVALID_FIELD"}],

PS: I'm using REST API and PHP

an idea?
Hi,

I found this URL that shows how refresh token. However, it does not work for me
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_refresh_token_oauth.htm

I have this message error: 
Resfresh token error message
There are my request entries:
endpoint: https://test.salesforce.com/services/oauth2/token
grant_type: refresh_token,
client_id :
CLIENT_ID,
client_secret: CLIENT_SECRET,
 refresh_token: my_last_token,
 format :
 json


 
Hi, get this message following the steps provided here : https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

So after getting the autorization code I trying to the access token and I have this message:

Error: call to token URL https://login.salesforce.com/services/oauth2/token failed with status 400, response {"error":"invalid_grant","error_description":"authentication failure"}, curl_error , curl_errno 0


I Have https url with a certificate.

I'm not able to find a support team or more info aobut the error

Hi, get this message following the steps provided here : https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

So after getting the autorization code I trying to the access token and I have this message:

Error: call to token URL https://login.salesforce.com/services/oauth2/token failed with status 400, response {"error":"invalid_grant","error_description":"authentication failure"}, curl_error , curl_errno 0

I Have https url with a certificate.

I'm not able to find a support team or more info aobut the error



 

Hi,

I have a test account I'm not able to resfresh my token

This is the endpoint used

https://test.salesforce.com/services/oauth2/token

for grant_type I use refresh_token
for refresh_token I use the resfresh token received with my token

it always returns the same token that is now expired

This is an example of how the response looks like:

{
    "access_token": "00oo0mYw_3k3lGCdtt4TC_TqD6ojIZmHyXCIWAHzYQPY349cnN2I4444",
    "signature": "Zp8Z2+TYKG+000UsO5zXg47mGUBLAHUEAEPMk8pEE=",
    "scope": "refresh_token visualforce wave_api web custom_permissions openid chatter_api id api full",
    "instance_url": "https://c00-De.cs42.my.salesforce.com",
    "id": "https://test.salesforce.com/id/00D550222006Dz6EAE/00555000001BQFxAAO",
    "token_type": "Bearer",
    "issued_at": "7777777"
}
I'm not able to query fields with picklist type

There is my query as example:
SELECT Landing_Page__c from Campaign
There is my error message
[
    {
        "message": "\nERROR at Row:1:Column:146\nNo such column 'Landing_Page__c' on entity 'Campaign'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.",
        "errorCode": "INVALID_FIELD"
    }
]
The fields listed below are listed in my SalesForce dashboard and their Api names are well spelled but I have an error message when I included them in my request for getting campaigns.
  • Owner
  • Objective__c
  • Tactic
  • Landing_Page__c
 
There  is the error message:
 
No such column '[fields]' on entity 'Campaign'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.","errorCode":"INVALID_FIELD"}],

PS: I'm using REST API and PHP

an idea?
Hi,

I found this URL that shows how refresh token. However, it does not work for me
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_refresh_token_oauth.htm

I have this message error: 
Resfresh token error message
There are my request entries:
endpoint: https://test.salesforce.com/services/oauth2/token
grant_type: refresh_token,
client_id :
CLIENT_ID,
client_secret: CLIENT_SECRET,
 refresh_token: my_last_token,
 format :
 json


 
Hi, get this message following the steps provided here : https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

So after getting the autorization code I trying to the access token and I have this message:

Error: call to token URL https://login.salesforce.com/services/oauth2/token failed with status 400, response {"error":"invalid_grant","error_description":"authentication failure"}, curl_error , curl_errno 0


I Have https url with a certificate.

I'm not able to find a support team or more info aobut the error