web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get GUID of Access Team Template?

(0) ShareShare
ReportReport
Posted on by 306

Hi Experts,

I want to fetch the GUID of access team template using Plugin.

Any Help will be Appreciated.

Thanks in Advance

Regards,

Aman Anvaria 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    Team template schema name

    1374.13.png

    team template guid

    1374.13.png

    Use FetchXML to construct a query

    https://msdn.microsoft.com/en-us/library/gg328117.aspx

    Sample

    <fetch count="50" >
    <entity name="teamtemplate" >
    <attribute name="description" />
    <attribute name="teamtemplateid" />
    </entity>
    </fetch>

    5008.14.png

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Aman,

    You can also try with query expression- Below is the code . Hope this helps.

                            ConditionExpression condition = new ConditionExpression();                       
                            condition.AttributeName = "teamtemplatename";                       
                            condition.Operator = ConditionOperator.Equal;                       
                            condition.Values.Add("Template Name need here");                        
                            FilterExpression filter = new FilterExpression();                       
                            filter.Conditions.Add(condition);                    
                            QueryExpression query = new QueryExpression("teamtemplate");                    
                            query.Criteria.AddFilter(filter);                      
                            query.ColumnSet = new ColumnSet("teamtemplateid");  // You can add additional column as well here                      
                            EntityCollection accessTeamColl = service.RetrieveMultiple(query); // Need to get the Org service proxy
                            foreach (var templateent in accessTeamColl.Entities)
                            {
                               string Id = ((templateent.Contains("teamtemplateid")) ? (templateent["teamtemplateid"] as EntityReference).Id.ToString() : "");
    
                            }


  • Suggested answer
    Community Member Profile Picture
    on at

    You can open the window where you have created the team and open the "console" (using F12)

    You can in the "console" tab write the following: "window.location.href".

    When doing so you will get an url like: "<root>/main.aspx?etc=92&extraqs=%3fetc%3d92%26id%3d%257bB3228218-B8F6-4A1B-A18D-552C6F980831%257d&histKey=777420436&newWindow=true&pagetype=entityrecord#108249740"

    If you check the url, you can see the Guid in here. It starts after the following characters "257b". Therefore the Guid in my case would be: "B3228218-B8F6-4A1B-A18D-552C6F980831".

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Aman,

    You can retrieve the teamtemplate (logical name for access template entity) using Query expression in C# plugin.

    See: arunpotti.wordpress.com/.../retrieve-records-using-query-expression-c-sdk-in-crm

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans