Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8639689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:05:04+00:00 2026-06-12T11:05:04+00:00

I have a basic problem. I need to find the guid of a record

  • 0

I have a basic problem. I need to find the guid of a record with a field set to a specific value.
Like finding the only record with its “favouritecolor” attribute set to “red”. (the field is unique, no double same colors)

The record I’ll be searching is not of the entity type that the plug-in works on.

I’ve looked for this everywhere, but only found lots of tutorials about getting the Guid of a record that was just created, which doesn’t help me much. Should a standard sqlconnection and select statement be used (like select guid from [table name] where favouritecolor = ‘red’), or is there a more beautiful way?

I’ll appreciate any kind of guidance.

Cheers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:05:06+00:00Added an answer on June 12, 2026 at 11:05 am

    Found a solution at last. Hope this helps someone.
    Cheers!

        private static Entity getTheRecord(IOrganizationService service)
        {
            QueryExpression query = new QueryExpression();
            query.EntityName = "NameOfTheEntity";
            query.ColumnSet = new ColumnSet() { AllColumns = true };
    
            query.Criteria = new FilterExpression();
            query.Criteria.FilterOperator = LogicalOperator.And;
            query.Criteria.Conditions.Add
            (
                new ConditionExpression("fieldname", ConditionOperator.Equal, "desiredvalue")
            );
            EntityCollection entities = service.RetrieveMultiple(query);
            return entities[0];
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basic problem I have a bunch of records and I need to get latest
I think i have a basic problem in understanding the dojo toolkit. Well I
I have such a basic problem in Delphi,I can't solve it. My Code: Note:DataR
I have a pretty basic problem but I can't seem to figure it out...
So I have a rather basic javascript problem which I have been slamming my
I have a very basic texture map problem in GL on iPhone, and I'm
Hi I have run into a very weird problem. I have a basic chrome
I have a kind of basic (but still unresolved) problem. I'm building a program
I have a problem with AvalancheImagineBundle for Symfony 2 I followed the basic instructions
I think I have a synchronization problem...It may be too basic..Please help.. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.