Frequently we have to execute plugins as Service Accounts so they have the right privileges to execute the business logic we want. Although you can set a user in the "Run In User Context" field of the plugin step, sometimes our organizations doesn't actually have service accounts to be used there. To programatically run a plugin … Continue reading Impersonating plugin as SYSTEM programatically
As a variant to a recent post I did, here's another method to associate records, difference is that this will associate multiple number of records in a single transaction
When creating N:N relationships between entities, CRM allow us to associate records. This is a great functionality to track and reference records through entities. Although this can be done manually, find below a method to associate two records programmatically:
Same as Users, Teams can be used to assign roles. This is used mostly for Owner Teams, which should have the right privileges over the records that they own. Find below a method to assign roles to a Team
As a variant to a recent post I did, here's another method to assign roles to a user, different is that this method will allow you to assign multiple number of roles in a single transaction.