private EntityReference GetTargeteEntityReference(CodeActivityContext executionContext, ITracingService tracingService, IOrganizationService organizationService)
        {
            string sourceRecordUrl = TargetRecordUrl.Get <string>(executionContext) ?? throw new ArgumentNullException("Source URL is empty");

            tracingService.Trace("Source Record URL:'{0}'", sourceRecordUrl);
            return(new DynamicUrlParser(sourceRecordUrl).ToEntityReference(organizationService));
        }
        private EntityReference GetTargetEntityReference(CodeActivityContext executionContext, IOrganizationService organizationService)
        {
            string targetRecordUrl = TargetRecordUrl.Get <string>(executionContext) ?? throw new ArgumentNullException("Target URL is empty");

            return(new DynamicUrlParser(targetRecordUrl).ToEntityReference(organizationService));
        }