I am using Salesforce API with C#. In the query that I am writing I am not sure how to pass a parameter to the select statement. My query works when it looks like this:
SOQL = "select AuthorId,Name, Description,Type from Document where AuthorId='005G0000003s4a8IAA'";
But I am not sure how to replace the value in
AuthorId that is
'005G0000003s4a8IAA' to a variable that I am passing to this method, like:
SOQL = "select AuthorId,Name, Description,Type from Document where AuthorId=" + id;
But this is not working. What is the correct format to pass the
id variable as a query argument?