Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Fetching a field using c#

$
0
0

how I can fetch all the records that have a Birth date bigger than (1/1/2000) and  age <15 and set their amount to 200 By c# visual studio. My code is wrong :


private void button7_Click(object sender, EventArgs e)
{

// Retrieve record
bool RetrieveRecords = true;

if (date=="1/5/2009" && new_age<7)
{
Console.WriteLine("Child Birthday is:");
String answer = Console.ReadLine();

RetrieveRecord = (answer.Fetchby(date)&& answer.new_age || answer == String);
}

else (RetrieveRecord)
{
_service.Retrieve("new_child", g);

Console.WriteLine("Entity record(s) have been fetched.");

}


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>