function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Keith Stephens 18Keith Stephens 18 

Salesforce to C# rest api

Hello All,
I am new to SF and Rest services, but I have created a C# restful service which I can call from SF developers console, but as of now I am passing in to the service and retruning a hard coded string. (Proof of concept that I can call my service).
Now I want to pass into my service actual data from a SOQL query. Something simple like "Select firstname, lastname from cases limit 3;"

I am not sure how to do this? Do I need to pass it in as string or some other JSON object?
One in my  Rest Service how do I pars it out, to insert into a SQL Server DB or Azure DB?

Just taking small steps for now, end result will be passing data from SF Class or button to the Rest service and DB in Azure.

Thanks,
Keith.