I was facing this issue today related to Nuget and DLL
missing in my project and was not able to proceed to look into an urgent issue.
Severity
Code Description Project File Line Suppression State Suppression State
Error
Exception 'System.AggregateException' thrown when trying to add source
'https://***.pkgs.visualstudio.com/_packaging/invo/nuget/v3/index.json'. Please
verify all your online package sources are available.
One
or more errors occurred.
Unable
to load the service index for source
https://invo.pkgs.visualstudio.com/_packaging/invo/nuget/v3/index.json.
Response
status code does not indicate success: 401 (Unauthorized).
Solution
Un-tick package sources that are not accessible with the
credentials that are being used to access Nuget or logged in for Visual Studio.
You can Tick specific
Nuget Feed (related to your Team Project) and sign in with your VSTS team
project account from VS upper right corner and restart VS
Explanation
Sometimes, when you are working for multiple client and
have TFS or VS logged in under their credentials, you will not be allowed to
access Nuget Package Source for different client with one credentials.
Even when you look for any Nuget package online you
might get this error, the reason is under configured package
source we are explicitly asking visual studio to list Nuget’s from all listed
and ticked package source.
var entityId = eks_Xrm.Page.data.entity.getId().replace('{', '').replace('}', '');
var entitySetName = eks_Xrm.Page.data.entity.getEntitySetName();
getAttachmentDetails(entitySetName,
entityId);
}
function getAttachmentDetails(regardingEntityType, regardingEntityId) {
var entity = "new_customattachments?";
var selectClause = "$select=new_blobuniqueid,new_customattachmentid,new_filesize,new_filetype,new_fileurl,new_name,new_notedescrption,new_notetitle,new_regardingentityid,new_regardingentitytype";
var filterClause = "&$filter=new_regardingentitytype
eq '" + regardingEntityType + "'
and new_regardingentityid eq '" + regardingEntityId + "'";
Note:You need to change highlighted parameteraccordingly to get connected to Azure Blob. You may
also think of storing them in custom configuration entity for security reasons.
Azure Blob Library Reference
We need to make Azure blob library as a CRM Resource and
use it in a reference in our web-resource.
Many Dynamic CRM customers might have experience on high
storage cost which is due to continuous upload of attachments in Note sections.
With an advancement in Power Automate one can easily move
attachments to Azure Blob and manage them well within Dynamic CRM. In this Blog,
I would be explaining the detail approach and concept of how smartly we can
manage notes and attachments.
For a compete Demo, please refer to below video.
Before we dive deeper into technical stuff, here are
some important fact
SharePoint storage cost is very small about $0.20 per
GB/Month compared to CRM’s $9.99/GB/Month. So, CRM space is around 50 times
costlier than SharePoint space.
Azure blob costs about $0.03/GB/month- which is
6.5x less than SharePoint storage cost and 300x less than CRM storage cost.
Azure Blob storage: Massively
scalable object storage for unstructured data. Store
any type of unstructured data—images, videos, audio, documents and more.
Here are the Technical Steps.
Create custom entity (new_CustomAttachment)
for storing migrated data about Notes and Attachments.
Here is a screen shot of a custom entity, all fields are
single line of text, except Note description which is Multiple line of text.
Handling Azure Storage
Create
a Resource Group – CRM_NotesAndAttachment
Create
a Root Folder within a Container – CRM_OrganizationName
For Azure Blob Connection in Power automate, you will
require Account Name and Key Please refer here how-to setup Azure Blob
Connection here.
MS Flow to move attachment to Azure Blob
Step 1) Select the Triggering
Action for When an Annotation (Notes) is created and select Notes
as an Entity
Step 2) Add a condition branch to check if Notes have Attachment to it.
Step 3) For True condition, we
have three further steps.
Step 3.1) Create Blob
Step 3.2) Create Custom CRM Record for Blob
Storage
I got this error when I was trying to delete a record
and there was a flow registered on Delete of a record.
Flow operation was requesting
entity tracking data and entity was not configured for change tracking, so we
need to enable change tracking for an entity.
1. Navigate to Settings> Customizations> Customize the System and select the
entity for which you want to track changes.
2. On the
entity’s General tab, scroll down to Data
Services, and select the Change
Tracking option box.
There is no plugin in
XrmToolBox yet to update change tracking for all entities, so here is C#
code.
UpdateEntityRequest
updateCustomEntityRequest = new UpdateEntityRequest