Skip to content

Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

    • About
    • DEV Tools
  • CRM, CRM 2011, Plug-Ins

    Configure Tracing and view trace log files in CRM

    Published by

    Rajeev Pentyala

    on

    August 16, 2012

    Tracing is important in CRM especially when your plugin throw exceptions in Test or Production environments We can configure and view the trace log file easily using “Crm Trace Log Viewer” tool and it work for both CRM 4.0 and 2011 Download Once you download the tool Configure Tracing Double…

    Continue reading →: Configure Tracing and view trace log files in CRM
  • CRM 2011

    Creating a plug-in on SavedQuery entity using CRM developer toolkit

    Published by

    Rajeev Pentyala

    on

    August 13, 2012

    In one of my requirement I have to create a plugin on “SavedQuery” entity to filter the views I was using CRM developer toolkit and when I open the “CRM Explorer” I did not find “SavedQuery” entity Later I came to know that “CRM Explorer” show entities by ‘Display Name’…

    Continue reading →: Creating a plug-in on SavedQuery entity using CRM developer toolkit
  • CRM 2011, JScript

    Fixing time zone issues while reading datetime fields using jscript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 8, 2012

    When you read datetime field values using OData or SOAP , you may not get exact datetime values if your CRM application is using by users from different time zones. We can fix the problem by using the “timezonebias” field from current users “UserSettings“ timezonebias & timezonedaylightbias are system-calculated fields based on the time…

    Continue reading →: Fixing time zone issues while reading datetime fields using jscript in CRM 2011
  • CRM, CRM 2011, JScript

    Filtering partylist entities using jscript in CRM

    Published by

    Rajeev Pentyala

    on

    August 2, 2012

    In CRM, partylist Party List is a data type, using which you can set more than one type of entity records for a single field For example, In the ‘Appointment’ entity, field “requiredattendees” is a ‘Party List’ type We can select multiple records of different      type (i.e., Accounts, Users,…

    Continue reading →: Filtering partylist entities using jscript in CRM
  • CRM, SQL, SSRS

    Getting logged in user’s GUID in CRM reports

    Published by

    Rajeev Pentyala

    on

    July 27, 2012

    We can get the logged in user GUID in the custom reports deployed in CRM using “fn_FindUserGuid()”  function Below is the sample query for the same DECLARE @currUserId UNIQUEIDENTIFIER SELECT @currUserId=dbo.fn_FindUserGuid() PRINT @currUserId 🙂

    Continue reading →: Getting logged in user’s GUID in CRM reports
  • Misc

    Restart remote machine using command prompt

    Published by

    Rajeev Pentyala

    on

    July 14, 2012

    We can restart a remote machine if you are domain administrator. Consider a scenario Machine 1 & Machine 2 are part of Domain “XYZ.com”. Assume “Machine 1” hanged and not even letting you to Shut down or Restart. So to restart the machine 1, Login as administrator to “Machine 2”…

    Continue reading →: Restart remote machine using command prompt
  • CRM 2011

    File name ABC.pdf is invalid – error while creating attachment programmatically

    Published by

    Rajeev Pentyala

    on

    July 9, 2012

    The other day I was getting “Invalid file name” error when I try to create an attachment with .pdf file and associating to Email, in my plug-in. (link) Reason Reason was “pdf” was added as blocked file extension for attachments in my CRM organization. Fix :- Go to “Settings -> Administration -> System Settings” Remove pdf from “Blocked…

    Continue reading →: File name ABC.pdf is invalid – error while creating attachment programmatically
  • CRM 2011, JScript

    XrmServiceToolkit for CRM 2011

    Published by

    Rajeev Pentyala

    on

    July 8, 2012

    XrmServiceToolkit is a JavaScript library which can be used for JavaScript Development under the platform for CRM 2011 environments. Download from Codeplex link http://xrmservicetoolkit.codeplex.com/ It contains single jscirpt file “XrmServiceToolkit.js” The library contains three major parts regarding functions. Common: General Methods used for various purpose. Rest: Organization Data Service functions…

    Continue reading →: XrmServiceToolkit for CRM 2011
  • CRM 2011, Plug-Ins

    Plug-ins in CRM 2011 – Useful points

    Published by

    Rajeev Pentyala

    on

    July 7, 2012

    Plug-in stages Pre validation Registered Plug-in run before the form is validated Useful if you want to implement business logic before the actual validation starts.  i.e., Changes made in plug-in won’t be saved if the validation of the main system plugins complain because the changes are outside the database transaction.…

    Continue reading →: Plug-ins in CRM 2011 – Useful points
  • CRM, CRM 2011, JScript

    Activate or Deactivate record using jscript

    Published by

    Rajeev Pentyala

    on

    July 5, 2012

    Hi, Below is the script to Activate or Deactivate record using jscript. // ‘State’  – Activate 0; InActive 1 // ‘Status’ – Active 1; InActive 2 function ActivateOrDeactivate(entityName, entityId, status, state) { var setStateRequest = ‘<s:Envelope xmlns:s=”http://schemas.xmlsoap.org/soap/envelope/“>’ + ‘<s:Body>’ + ‘<Execute xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts/Services” xmlns:i=”http://www.w3.org/2001/XMLSchema-instance“>’ + ‘<request i:type=”a:UpdateRequest” xmlns:a=”http://schemas.microsoft.com/xrm/2011/Contracts“>’ + ‘<a:Parameters xmlns:b=”http://schemas.datacontract.org/2004/07/System.Collections.Generic“>’…

    Continue reading →: Activate or Deactivate record using jscript
Previous Page Next Page
Visitors

2,152,709 hits

Top Posts
Getting Started: Build Your First Power Apps Code AppGetting Started: Build Your First Power Apps Code AppAugust 27, 2025Rajeev Pentyala
Claude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeClaude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeFebruary 5, 2026Rajeev Pentyala
Power Pages | Build a Site Using 'Claude Code' and the 'Power Pages Plugin'Power Pages | Build a Site Using 'Claude Code' and the 'Power Pages Plugin'March 15, 2026Rajeev Pentyala

Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

  • Pinterest
  • Instagram
  • Facebook
  • Mail
    • About
    • DEV Tools

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI
    • Join 480 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar

Notifications