Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
6 votes
Accepted

Trying to upsert product2 - Method not allowed?

To use PATCH, you need to make sure you're encoding the ID. Assuming the URL in your question was generated literally, that's problematic. The URL should look like: /services/data/v41.0/sobjects/...
sfdcfox's user avatar
  • 493k
3 votes

The Id field should not be specified in the sobject data

In Salesforce, record Id's are generated when you insert any record. Once record id's are generated they become Read Only fields. Hence they cannot be modified. In above code, you're trying to make ...
Rohit Mourya's user avatar
  • 3,871
2 votes

Linking custom object to Lead using Force.com Toolkit for .NET

The following console application ran for me and created the ResourceView__c record associated with the Lead. Note that: The Lead Id was assigned as a string. I needed to add my namespace prefix of &...
Daniel Ballinger's user avatar
2 votes
Accepted

How to get raw response from .NET force.com toolkit when using QueryAsync

Lets go down the rabbit hole! ForceClient.QueryAsync JsonHttpClient.HttpGetAsync BaseHttpClient.HttpGetAsync protected async Task<string> HttpGetAsync(Uri uri) { var responseMessage = ...
Daniel Ballinger's user avatar
1 vote

The Id field should not be specified in the sobject data

Have a look at how UpdateAsync is implemented with respect to the underlying REST API. It maps the record ID into the PATCH URL. Yet your anonymous type includes an Id property, even if it is null. ...
Daniel Ballinger's user avatar
1 vote

Outh authenticating with curl, but not with C# client

I was able to get this to work by commenting out line 65 in the c# code. request.Headers.UserAgent.ParseAdd(string.Concat(UserAgent, "/", ApiVersion)); This line sets the UserAgent to the API ...
Fred B's user avatar
  • 613
1 vote
Accepted

Linking custom object to Lead using Force.com Toolkit for .NET

After reading the other answers and reviewing my code again I found the answer staring me in the face. The second error message was the key Lead: id value of incorrect type: 0035800000AQqGfAAL Turns ...
Neil Bostrom's user avatar
1 vote
Accepted

Force.com Toolkit for .NET : Specify Fields to Update

One option would be to create new objects with just the fields you want to update. You could either use strongly typed POCO or annonymous types. E.g. // annonymous types var success = await client....
Daniel Ballinger's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible