Hello, I am completely new in Dynamics 365. I need to create new field for entity 'Company', for example 'CompanyName'. How should I do that? I understood that I need to use 'CreateAttributeRequest' but I couldn't find full example of using this class. I found only parts like this https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.sdk.messages.createattributerequest?view=dynamics-general-ce-9. There isn't link on full example, unfortunately.
1. How should I create instance of class which implements IOrganizationService? Which class should I use?
2. Should I check if my new 'CompanyName' field already exist?
3. How plugins like this generally works? Should I register them for some action? Do I need connection string or not?