SELECT Label,Value FROM PicklistValueInfo WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Account' AND EntityParticle.QualifiedApiName = 'BillingCountryCode' AND isActive = true LIMIT 1000
#Net Development0 discussing
- Recent Activity
- Created Date
- Recommended
- All Questions
- Questions with an Accepted Answer
- Unanswered Questions
- Questions with No Accepted Answer
May 23, 2025, 5:19 PM You cannot directly tie the ContentVersion with an Account during the upload. Just like in Apex, you have to create a ContentDocumentLink record with the relative Id's after the ContentVersion is uploaded.

Apr 11, 2025, 11:34 AM this is an old post and you may have the answer by now but I came across this problem only this week.
For Partner API, SforceService class is replaced by Soap (interface) and SoapClient (implementing class)
For Metadata API, use the MetadataPortType interface and MetadataPortTypeClient implementing class
For Tooling API, use the SforceServicePortType interface and SforceServicePortTypeClient implementing class.
The previous methods that were unavailable may now just be the async equivalents. For example, instead of describeSObjects(sObjectType) for Partner API you have describeSObjectsAsync(describeSObjectsRequest) where describeSObjectsRequest has a sObjectType field.
Oct 21, 2024, 5:56 AM If you want to compress your PST files without Outlook, try the Aryson Outlook PST Compress Tool, a secure and efficient solution for compressing your Outlook PST files without needing to install MS Outlook on your local device. Moreover, the tool has the option to remove duplicate emails and offers a simple user interface.
Hi All,
I need to integrate Salesforce with Loopio (another tool) via API. For that I have generated an access token but that token is getting expired in 1 hour. I read many docs on internet that we cannot increase the lifetime of the access token. So how can I connect the two applications without regenerating the acess token again and again. I want to build automation in SF using the integration.
#Salesforce Developer #Developer Forums #Net Development #Integration #Trailblazer #TrailblazerCommunity
Sushil Kumar (UKG) Forum Ambassador
Feb 8, 2024, 1:24 PM So if i understand correctly, you are calling Loopio API to get some data or send some data. In that case, Loopio is the one which will control the access token expiry(may have some config within app). Also I have seen some JWT based integration where you can set token validity while creating JWT before calling token endpoint. If token expiry control option is not available for some reason, you could build code to cache token along with datetime somewhere. Every time you want to call API, check for validity date/time, if its expired , regenerate it. If not, keep using it. Hope this makes sense.

{
"City":"IROQUOIS",
"Country":"Canada",
"CountryCode":"CAN",
"PostalCode":"K0E 1K0",
"State":"ONTARIO",
"StateCode":"ON",
"Street":"SENSITIVE_DATA_HERE"
},
"Company":"SENSITIVE_DATA_HERE",
"Description":"SENSITIVE_DATA_HERE",
"Email":"SENSITIVE_DATA_HERE"....}Any ideas on why it's having trouble deserializing the address?
Jul 7, 2015, 1:12 AM Oddly, the capitalization of the JSON appears to impact how it is deserialized. If I send in the following JSON: {"Address": {
"City": "Nelson",
"Country": "New Zealand",
"CountryCode": null,
"PostalCode": "7011",
"State": "Nelson",
"StateCode": null,
"Street": "7 Forests Rd\r\nStoke"
},
"Company":"TestLeadCompany2",
"Description":"SENSITIVE_DATA_HERE",
"Email":"daniel.ballinger@example.com",
"LastName": "Ballinger"}
I get the response:
[
{ "message": "Cannot deserialize instance of Address from VALUE_STRING value Nelson at [line:2, column:18]", "errorCode": "JSON_PARSER_ERROR" }]
If the casing of the address members is converted to lower case, the response changes:
{"Address": {
"city": "Nelson",
"country": "New Zealand",
"countryCode": null,
"postalCode": "7011",
"state": "Nelson",
"stateCode": null,
"street": "7 Forests Rd\r\nStoke"
},
"Company":"TestLeadCompany2",
"Description":"SENSITIVE_DATA_HERE",
"Email":"daniel.ballinger@example.com",
"LastName": "Ballinger"}
[
{ "message": "Unable to create/update fields: Address. Please check the security settings of this field and verify that it is read/write for your profile or permission set.", "errorCode": "INVALID_FIELD_FOR_INSERT_UPDATE", "fields": [ "Address" ] }]
Instead you need to send in the Address data using the direct fields on the Lead.
{
"City": "Nelson",
"Country": "New Zealand",
"PostalCode": "7011",
"State": "Nelson",
"Street": "7 Forests Rd\r\nStoke",
"Company":"TestLeadCompany2",
"Description":"SENSITIVE_DATA_HERE",
"Email":"daniel.ballinger@example.com",
"LastName": "Ballinger"
}
Gives:
{
"id": "00Qo000000Hd2IxEAJ", "success": true, "errors": []}Does the Salesforce Toolkit (https://github.com/developerforce/Force.com-Toolkit-for-NET) provide directly properties that you can set on the Lead for City, Country, State, etc..?
Dec 20, 2023, 1:10 PM You're seeking an application to combine multiple Outlook PST files, the ToolsCrunch Mac Merge PST Tool can help. This application is both secure and fast. Users can quickly and without data loss combine Outlook PST files with the help of this software. Furthermore, it links Unicode PST to ANSI PST and Unicode PST. When manually saving multiple Outlook PST files to PCs, users commonly run into problems. It supports all Mac and Windows OS versions. Users can, however, use this tool to rapidly and without data loss consolidate numerous Outlook PST files into one. It combines Outlook PST files without requiring you to install Microsoft Outlook. Furthermore, it is compatible with all versions of Microsoft Outlook, including 2021, 2019, 2016, 2013, 2010, 2007, and 2000.

I am using Partner WSDL and C⌗ to connect to Salesforce. Login has no issue.
After login, I am trying to access a VF Page and get the content but no luck. I am keeping getting this error.I believe it is the sessionID was not passed properly. What could be wrong? My code is attached.Thanks,David
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<script>
if (this.SfdcApp && this.SfdcApp.projectOneNavigator) { SfdcApp.projectOneNavigator.handleRedirect('https://test.salesforce.com/?ec=302&startURL=%2Fvisualforce%2Fsession%3Furl%3Dhttps%253A%252F%252Fc.cs20.visual.force.com%252Fapex%252Fpromopage'); } else
if (window.location.replace){
window.location.replace('https://test.salesforce.com/?ec=302&startURL=%2Fvisualforce%2Fsession%3Furl%3Dhttps%253A%252F%252Fc.cs20.visual.force.com%252Fapex%252Fpromopage');
} else {;
window.location.href ='https://test.salesforce.com/?ec=302&startURL=%2Fvisualforce%2Fsession%3Furl%3Dhttps%253A%252F%252Fc.cs20.visual.force.com%252Fapex%252Fpromopage';
}
</script>
</head>
</html>
<!-- Body events -->
<script type="text/javascript">function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}</script>
</body>
</html>
<!--
...................................................................................................
...................................................................................................
...................................................................................................
...................................................................................................
-->
​string /userName = "xxx@xxx.com.full";
string password = "xxxxxxxFbrTKKU8nrvr00Aq3TG9";
SFDCPartner.SforceService SfdcBinding = null;
SFDCPartner.LoginResult CurrentLoginResult = null;
SfdcBinding = new SFDCPartner.SforceService();
try
{
CurrentLoginResult = SfdcBinding.login(userName, password);
SfdcBinding.SessionHeaderValue = new SFDCPartner.SessionHeader();
SfdcBinding.SessionHeaderValue.sessionId = CurrentLoginResult.sessionId;
SfdcBinding.Url = CurrentLoginResult.serverUrl;
var request = (HttpWebRequest)WebRequest.Create("https://cs20.salesforce.com/apex/promopage");
var postData = "promo={\"Type\":\"TestMethod\",\"UserName\":\"4991431\",\"Password\":\"123\",\"Program\":\"Test\"}";
var data = Encoding.ASCII.GetBytes(postData);
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = data.Length;
request.Headers.Add("Authorization", "Bearer " + CurrentLoginResult.sessionId);
//request.Headers.Add("SESSIONID", CurrentLoginResult.sessionId);
using (var stream = request.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
System.IO.Stream data1 = response.GetResponseStream();
string html = String.Empty;
using (StreamReader sr = new StreamReader(data1))
{
html = sr.ReadToEnd();
}
}
catch (Exception e)
{
// This is something else, probably comminication
SfdcBinding = null;
throw (e);
}

And this works and calls my rest service passing in a string value, but now I want to pass back some actual data from salesforce example'SELECT LastModifiedDate,Plaintiff_Full_Name__c,Plaintiff_Last_Name__c FROM Case limit 3';I know I will have to change my parameter in my rest service to accept whatever SF will be passing to me.But here I am not sure what or how to do this? Do I need to create a dictionary object, and pass that?What do I need to do in SF to pass query results and then read them in my rest service.Thanks for any help or advice,Keith.String url = 'http://server/ErpApiService/api/PriceForCustomerA/10/15';
Http h = new Http();
HttpRequest req = new HttpRequest();
system.debug('got request');
req.setEndpoint(url);
system.debug('setendpoint');
req.setMethod('GET');
HttpResponse res = h.send(req);
system.debug('res' + res);
system.debug('Price: ' + res.getBody());

Oct 4, 2017, 5:06 PM Hello All,Just as fyi what I got to work was. I had to serialize my soql my list<sobjects>Chage the GET to Postadd setBody equal to my serialized List.Then on the C⌗ side I had to change my Get call to a Post and add async to the method.Then I could do string result = await Request.Content.ReadAsStringAsync(); To get my json string.